After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 125060 - Incorrect disk space values
Incorrect disk space values
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on: 125049
Blocks:
 
 
Reported: 2003-10-20 19:47 UTC by Ole Laursen
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ole Laursen 2003-10-20 19:47:46 UTC
The values that gnome-system-monitor reports for the disk usages are wrong
on my laptop because gnome-system-monitor assumes that the disk block size
is 512. This is not true in general (I think it is 1024 on my laptop). This
is rather confusing.

Ideally, the problem would be fixed in libgtop by augmenting the API for
fs-usage with the disk block size. I've filed bug #12504 regarding that.
Comment 1 Ole Laursen 2003-11-10 22:34:42 UTC
Except that it was bug #125049. Sorry for the incorrect link.
Comment 2 Kevin Vandersloot 2003-11-20 00:25:30 UTC
libgtop just

*** This bug has been marked as a duplicate of 125049 ***
Comment 3 Ole Laursen 2003-11-20 17:42:27 UTC
I posted to bug #125049 that I think you misunderstood my bug report.
The incorrect lines are, AFAICS, lines 529-531 and 626-629 in callbacks.c:

  btotal = (float)usage.blocks * 512;
  bfree = (float)usage.bfree * 512;
  bused = (float)(usage.blocks  - usage.bfree) * 512;
Comment 4 Ole Laursen 2003-11-20 21:02:15 UTC
It seems the bug should not be closed yet, reopening.
Comment 5 Ole Laursen 2004-07-07 14:03:40 UTC
This has been fixed now, closing the bug.