Changeset 13587 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 27, 2008 4:46:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r13580 r13587 2202 2202 } 2203 2203 2204 uint64_t ThroughputSend = 0; 2205 uint64_t ThroughputReceive = 0; 2206 if (EndTime != BeginTime) 2207 { 2208 ThroughputSend = (BytesSent * 1000) / (EndTime - BeginTime); 2209 ThroughputReceive = (BytesReceived * 1000) / (EndTime - BeginTime); 2210 } 2211 2204 2212 if (details == VMINFO_MACHINEREADABLE) 2205 2213 { 2206 uint64_t ThroughputSend = 0;2207 uint64_t ThroughputReceive = 0;2208 if (EndTime != BeginTime)2209 {2210 ThroughputSend = (BytesSent * 1000) / (EndTime - BeginTime);2211 ThroughputReceive = (BytesReceived * 1000) / (EndTime - BeginTime);2212 }2213 2214 RTPrintf("VRDPBytesSent=%llu\n", BytesSent); 2214 2215 RTPrintf("VRDPThroughputSend=%llu\n", ThroughputSend); … … 2222 2223 { 2223 2224 RTPrintf("Sent: %llu Bytes\n", BytesSent); 2224 RTPrintf("Average speed: %llu B/s\n", (BytesSent * 1000) / (EndTime - BeginTime));2225 RTPrintf("Average speed: %llu B/s\n", ThroughputSend); 2225 2226 RTPrintf("Sent total: %llu Bytes\n", BytesSentTotal); 2226 2227 2227 2228 RTPrintf("Received: %llu Bytes\n", BytesReceived); 2228 RTPrintf("Speed: %llu B/s\n", (BytesReceived * 1000) / (EndTime - BeginTime));2229 RTPrintf("Speed: %llu B/s\n", ThroughputReceive); 2229 2230 RTPrintf("Received total: %llu Bytes\n", BytesReceivedTotal); 2230 2231 }
Note:
See TracChangeset
for help on using the changeset viewer.