VirtualBox

Ignore:
Timestamp:
Oct 27, 2008 4:46:54 PM (16 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: fix the non-machinereadable VRDP stats too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r13580 r13587  
    22022202            }
    22032203
     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
    22042212            if (details == VMINFO_MACHINEREADABLE)
    22052213            {
    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                 }
    22132214                RTPrintf("VRDPBytesSent=%llu\n", BytesSent);
    22142215                RTPrintf("VRDPThroughputSend=%llu\n", ThroughputSend);
     
    22222223            {
    22232224                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);
    22252226                RTPrintf("Sent total:         %llu Bytes\n", BytesSentTotal);
    22262227
    22272228                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);
    22292230                RTPrintf("Received total:     %llu Bytes\n", BytesReceivedTotal);
    22302231            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette