peter-hst / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Disk I/O counters reported in microseconds not milliseconds on OS X #323

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
psutil.disk_io_counters() on OS X is reporting microseconds not milliseconds 
because the division operation at 
https://code.google.com/p/psutil/source/browse/trunk/psutil/_psutil_osx.c#1606 
is wrong. Nanoseconds divided by 1000 yields microseconds. It should be 
dividing by 1,000,000.

Original issue reported on code.google.com by gregory....@gmail.com on 7 Sep 2012 at 6:03

GoogleCodeExporter commented 8 years ago
I'm not in italy right now. can you provide a patch in the meantime?

Original comment by g.rodola on 7 Sep 2012 at 7:39

GoogleCodeExporter commented 8 years ago
This patch should do it.

Original comment by gregory....@gmail.com on 7 Sep 2012 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r1561.
Thanks!

Original comment by g.rodola on 13 Dec 2012 at 5:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1561 == revision cee674efd3d0

Original comment by g.rodola on 2 Mar 2013 at 12:12

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 8 Apr 2013 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 11 Apr 2013 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 12 Apr 2013 at 6:21