Explorar o código

change driver_cloud_grpc_client. change time interval calculate.

yuchuli %!s(int64=4) %!d(string=hai) anos
pai
achega
1d10e02f01
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/driver/driver_cloud_grpc_client/grpcclient.cpp

+ 3 - 1
src/driver/driver_cloud_grpc_client/grpcclient.cpp

@@ -123,6 +123,8 @@ void grpcclient::run()
                 request.set_kepptime(nkeeptime);
                 request.set_bimportant(bImportant);
                 nid++;
+
+                nlastsend = xTime.elapsed();
                 // The actual RPC.
                 Status status = stub_->upload(&context, request, &reply);
                 if (status.ok()) {
@@ -152,7 +154,7 @@ void grpcclient::run()
                 }
 
             }
-            nlastsend = xTime.elapsed();
+
 
     }
 }