Non-standard units, inconsistent with other GNOME apps

Bug #123932 reported by ricke80
6
Affects Status Importance Assigned to Milestone
gnome-system-monitor (Ubuntu)
Won't Fix
Wishlist
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-system-monitor

Gnome System Monitor displays memory and partition sizes using units like "MB" and "GB", but with the non-standard Microsoft definition (MB = 1,048,576 bytes instead of 1,000,000 bytes).

Compare with other apps like Gnome Partition Editor, Nautilus CD Burner, and Network Tools, which use the standard base-2 units (MiB=1,048,576 bytes) and things like Synaptic, which use the standard decimal units (MB=1,000,000 bytes).

See the units man page for definitions and background:
~$ man units

In a lot of programs the discrepancy doesn't really matter, but in a system-level tool like this, precision and consistency with other programs is important.

Revision history for this message
Jeremy Teale (jteale) wrote :

Unfortunately, this has already been rejected upstream. If you feel strongly about this, the best place would be to push your case at http://bugzilla.gnome.org/show_bug.cgi?id=318718 . I'll mark this as Won't Fix in accordance with the unwillingness of the upstream author to make these changes.

Changed in gnome-system-monitor:
status: New → Won't Fix
Revision history for this message
ricke80 (51m005c02) wrote :

I'm confused. I'm reading through "Bug 318718 – Use consistent units in procman" and it looks like the guy labeled "system-monitor developer" agrees strongly with me. That bug reads as if it was a request to use the Microsoft units instead of the standard ones, which is the opposite of what I am asking (and would break consistency with other GNOME apps). But it looks like it was marked WONTFIX, so why are these units being used in the software? Is it a version issue or something? (That bug was in 2006, I'm using System Monitor 2.18.1.1)

Changed in gnome-system-monitor:
status: Won't Fix → New
Revision history for this message
ricke80 (51m005c02) wrote :

To clarify: If I look at my NTFS partition in GNOME Partition Manager (GParted 0.2.5), it is listed as "68.12 GiB". If I look at it in GNOME System Monitor 2.18.1.1, it is listed as "68.1 GB" (which is technically wrong, although Microsoft products have traditionally written things this way). System Monitor should say "68.1 GiB" to reduce confusion and be consistent with other GNOME apps.

Revision history for this message
Sebastien Bacher (seb128) wrote :

We patch gnome-system-monitor to be consistent with the other desktop application, marking "Won't Fix", that's not a bug

Changed in gnome-system-monitor:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: New → Won't Fix
Revision history for this message
Sebastien Bacher (seb128) wrote :

There has been a discussion about the units on the ubuntu and debian list in june if you want to read it

Revision history for this message
ricke80 (51m005c02) wrote :

So you've intentionally modified gnome-system-monitor to display the wrong units, despite the wishes of the package maintainer, and despite the Linux programmer's manual, in a way that makes it inconsistent with the rest of the GNOME desktop? Why?

Revision history for this message
Sebastien Bacher (seb128) wrote :

What "Linux programmer's manual"? It's not inconsistent with the rest of the desktop, the patch changes the ugly hack used by the gnome-system-monitor maintainer to use the gnome-vfs function. The right place to change the units would be the library, but that's something to discuss upstream and not on the ubuntu bug tracker

Revision history for this message
ricke80 (51m005c02) wrote :

The "units" man page. I don't know anything about gnome-vfs, but how can you say it's consistent with the rest of the desktop when I've shown you several GNOME apps that it conflicts with?

Can you confirm that Ubuntu has used a patch to implement a different version of the software that disregards the package maintainer upstream? Is there a way for users to override this and use the official version of the software?

Revision history for this message
ricke80 (51m005c02) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

gpart is not a GNOME desktop application. gnome-vfs is the library used by the GNOME desktop to work with drives, volumes, etc. It has a gnome_vfs_format_file_size_for_display() which "Formats the file size passed so that it is easy for the user to read. Gives the size in bytes, kilobytes, megabytes or gigabytes, choosing whatever is appropriate.". The desktop applications are using this library. You can read http://bugzilla.gnome.org/show_bug.cgi?id=301838 about the units used and the cange you request. You can rebuild the package with your own set of changes if you want though

Revision history for this message
stevecs (stevecs) wrote :

I also need to agree with the requester here that even though historically the computer industry has 'fudged' the SI units to suit it's needs, it's wrong. And the correct current international standard is to use the MiB/GiB et al designations for base-2 numbers. From using the "MB" unit designation now there is confusion as to if it's base-10 or base-2 which can and should be avoided.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.