int duration = 0;\r
ReByteBuffer answer, data;\r
client.setLogSendReceive(false);\r
+ int64_t sizeCurrent = 0;\r
for (int ii = 0; ii < rounds; ii++) {\r
client.send(command, message.str(), message.length());\r
client.receive(answer, data);\r
size += message.length() + data.length();\r
+ sizeCurrent += message.length() + data.length();\r
time_t now = time(NULL);\r
if (now >= lastPrint + interval) {\r
duration = int(now - start);\r
- printf("%2d: %9.3f MiByte %8.3f kiByte/sec %s\n", ii,\r
- size / 1024.0 / 1024, (double) size / duration / 1024,\r
+ int durationCurrent = int(now - lastPrint);\r
+ printf("%2d: %9.3f MiByte %8.3f / %8.3f kiByte/sec %s\n", ii,\r
+ size / 1024.0 / 1024,\r
+ (double) sizeCurrent / durationCurrent / 1024,\r
+ (double) size / duration / 1024,\r
upload ? "up" : "down");\r
lastPrint = now;\r
+ sizeCurrent = 0;\r
}\r
}\r
duration = int(time(NULL) - start);\r