Эх сурвалжийг харах

change driver_cloud_grpc_client. change time interval calculate.

yuchuli 4 жил өмнө
parent
commit
1d10e02f01

+ 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();
+
 
     }
 }