* Made the network I/O byte per second computation more accurate.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-07-15 17:09:08 +00:00
parent 0634c42f2c
commit 46fa06b554

View File

@ -897,8 +897,8 @@ NetworkUsageDataSource::NextValue(SystemInfo& info)
{
uint64 transferred = fIn ? info.NetworkReceived() : info.NetworkSent();
int64 bytesPerSecond = uint64((transferred - fPreviousBytes)
/ ((info.Time() - fPreviousTime) / 1000000.0));
int64 bytesPerSecond = uint64(double(transferred - fPreviousBytes)
/ (info.Time() - fPreviousTime) * 1000000.0);
fPreviousBytes = transferred;
fPreviousTime = info.Time();