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 318718 - Use consistent units in procman
Use consistent units in procman
Status: RESOLVED WONTFIX
Product: system-monitor
Classification: Core
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-12 22:21 UTC by Christian Rose
Modified: 2015-03-17 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix: use gnome_vfs_format_file_size_for_display (6.99 KB, patch)
2006-01-04 14:29 UTC, Christian Persch
rejected Details | Review

Description Christian Rose 2005-10-12 22:21:52 UTC
#: ../src/util.c:93
#, c-format
msgid "%.1f KiB"

#: ../src/util.c:97
#, c-format
msgid "%.1f MiB"

#: ../src/util.c:101
#, c-format
msgid "%.1f GiB"

Please use units with the traditional prefixes (kB, MB, GB) in procman, for
consistency with the rest of GNOME. The traditional prefixes is what is mandated
 in the GNOME glossary of terminology
(http://developer.gnome.org/documents/style-guide/units.html).
Comment 1 Benoît Dejean 2005-10-12 22:31:30 UTC
i have to disagree. See discussion on #301838. Feel free to translate SI
suffixes by non-SI suffixes in your own language.
Comment 2 Christian Rose 2005-10-12 23:18:03 UTC
I know all the arguments for and against using the SI prefixes, thank you.
This is not about that. This is about being consistent with the rest of the
desktop (or intentionally being breaking consistency).

If you want to have SI units, fix the specs so that we can have it across the
whole desktop. Otherwise please refrain from it.
Comment 3 Adam Weinberger 2005-10-13 00:03:59 UTC
I asked a number of my American friends what they think when they see "100 MiB." Every single one of 
them - without exception - said that it looked like a spelling error to them.

If a locale uses SI units as their standard, then that's cool. But the source strings are in American 
English, and should be what American English-speakers expect to see. The units used in the United 
States are GB, MB, KB, etc., and are definitely what should appear in the source strings in my opinion.

I am the first to agree that everyone should jump on board with SI units, but I don't think that it's 
GNOME's job to attempt to initiate the move for the Americans. It brings to mind the Canadian 
Broadcasting Corp's  show "Talking To Americans", wherein Rick Mercer tells a random Texan on the 
street about how obesity is a real problem in Alberta, where the average person weighs nearly 8 
kilometres. And the Texan nods emphatically and says, "That's a damn shame. I haven't weighed that 
much in my whole life."
Comment 4 Benoît Dejean 2005-10-13 01:25:55 UTC
There are already gnome software that uses SI units. nautilus-cd-burner for example.

"I asked a number of my American friends what they think when they see "100
MiB." Every single one of them - without exception - said that it looked like a
spelling error to them."

You're free to translate the way you want.

I just want things to be clear. If i/we use SI units it is to avoid confusion. I
have personal bad experiences with software documentation (e.g system tools,
like lvm, reiserfstools, xfstools, network tools, etc), and each time, i had to
ask what k/M/G/etc mean. Eventually i had to look at the source code. Moreover
this is even more confusing because gsm displays info about disks (usually use
power of 2) and network (usually use power of 10). I don't want to make this
mistake.

If you think "KiB" is misleading for your people, feel free to translate by
"KB". But at least, you know what you are translating.
Comment 5 Christian Persch 2005-10-13 11:09:15 UTC
Isn't it a bug that those messages are there at all? gnome-vfs provides
gnome_vfs_format_file_size_for_display for the purpose of formatting byte sizes.
(And using KiB/MiB/etc units for it was WONTFIXed in bug 301838.)
Comment 6 Olivier Ripoll 2005-10-21 15:12:47 UTC
I think the solution is not to use MiB, KiB and other such units, but to use kB,
MB instead with the correct value, tha is 1 kB = 1000 B, 1 GB = 1000 000 000.

Indeed, not only it is the "user friendly solution"(*), but all hard drives
(since at least 2001), DVD and future blue-ray and HD-DVD use this convention.
Additionally, the most common underlying OS of Gnome, Linux, uses SI units for
years. So, apart from the CDs and some memories (not all!), there is no more use
of the mistaken 1K=2^10 and 1M=2^20.

Please notice that even a 1.44 floppy disk did not contain 1.44 * 2^20 Bytes,
but 1.44 * 1000 * 1024 to add to the confusion.

(*) Aunt Tilly uses kilogram for 1000 gram and kilometer for 1000 meters.
Manager Bill use kilo$ for 1000 $. Engineer Joe uses GHz for 10^9 Hz, and 1
GBit/s really means 10^9 Bits/s.
Comment 7 Christian Rose 2005-10-21 17:03:22 UTC
Again, please do not make this into a "which units are better" flame war. That
discussion is totally beside the point, and if you prefer a particular kind of
units, then please bring that discussion up elsewhere.

The point here is that procman is inconsistent with the rest of the core GNOME
Desktop and Developer Platform, and inconsistent with the consistency guidelines
we have. The only exception is nautilus-cd-burner, and there's a seperate bug
report for that; bug 163834. The other 68 modules, including Nautilus and
gnome-vfs, use the traditional units when they use units, in order to make the
desktop consistent.

I don't care either way in what units we use, as long as they are being used
consistently everywhere. I still beleive in GNOME being a usable and coherent
desktop experience for end users. But what do I know; perhaps I'm just
old-fashioned that way.
Comment 8 Benoît Dejean 2005-10-21 17:09:09 UTC
I don't care about consistent units when they are wrong.
Comment 9 Karderio 2006-01-04 05:40:18 UTC
I wouldn't define wrong as not complying to SI, otherwise those English and Americans have a wrong speed limit.

However I would say that it is wrong to use one type of unit in one part of GNOME and another elsewhere.

Units have already been agreed on, any discussion concerning the type of unit to be used should be filed as a bug concerning the style guide : http://developer.gnome.org/documents/style-guide/units.html. 

The way to get this changed is certainly not by starting to change the units used here and there in little parts of GNOME, it is *very* important to use consistent terminology throughout GNOME.

Love, Karderio
Comment 10 Olivier Ripoll 2006-01-04 08:20:05 UTC
Karderio,

I think your analogy is not correct. The US and English people use miles per hour. There is nothing wrong about it. What would be wrong would be to use kilometers per hour and defining one kilometer as 1609 meters.
Comment 11 Karderio 2006-01-04 09:42:06 UTC
That is besides the point. No the analogy is not correct, it was supposed to be funny.

The point is what comes next : basically please stick to one type of unit in GNOME, so as not to confuse users.

I believe the rest of my comment to be both correct and pertinent, besides my attempt at humor, no ? I would very much like constructive criticism and corrections.

I was basically agreeing with comment #7.

Lets try this again :

It is bad practice to use one type of unit in one part of GNOME and another elsewhere. This is very confusing.

Units have already been agreed on, any discussion concerning the type of unit to be used should be filed as a bug concerning the style guide : http://developer.gnome.org/documents/style-guide/units.html. (I wouldn't mind confirmation on this)

The way to get this changed is certainly not by starting to change the units used here and there in little parts of GNOME, it is *very* important to use consistent terminology throughout GNOME, not only concerning units.

If you do not agree with the units used in GNOME, please start a discussion about it so that all may benefit from proper units.

Love, Karderio
Comment 12 Karderio 2006-01-04 09:49:07 UTC
Actually, if you reword the comment as I meant it, it is manifestly correct :

"If you define 'wrong' as not complying to SI, the speed limit in America is wrong, as it is not measured in SI units."

Thankfully for a measurement to be considered correct, it need not be made in SI units.
Comment 13 Olivier Ripoll 2006-01-04 12:17:45 UTC
Karderio,

I am sorry to go on this off-topic discussion, but you _analogy_ is not correct. The problem raised here is not "analogous" to the example you give. I never said your sentence is wrong.

The fact that the guidelines for units should be updated to avoid confusing units (such as binary quantities) is another topic and is (should be) probably discussed in another bug.

Please also note that the solution Christian Rose and I propose in comments #1 and #6 follows the gnome guidelines.
Comment 14 Karderio 2006-01-04 14:03:01 UTC
I give up ! This could go on for ever.

I say "No the analogy is not correct" and get told "but you _analogy_ is not
correct" with added sarcasm.

I do not agree with comment #13, but it would seem a waste of time explaining why.
Comment 15 Christian Persch 2006-01-04 14:29:57 UTC
Created attachment 56775 [details] [review]
fix: use gnome_vfs_format_file_size_for_display
Comment 16 Benoît Dejean 2006-12-06 15:27:57 UTC
I haven't changed my mind.
Comment 17 bi2h5da02 2007-08-11 17:30:35 UTC
Note that this has been called an "ugly hack" and overridden in Ubuntu.

See:
https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/80780
https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/123932

I think this is wrong would rather have the "hacked" version in Ubuntu, so it's consistent with other apps like gparted and nautilus-cd-burner.

Looks like this would need to be changed in gnome-vfs for them to accept it?
Comment 18 bi2h5da02 2007-08-11 17:32:31 UTC
Especially ironic since Ubuntu's own Launchpad bug tracker reports their patch size in correct units:

"use normal units  (1.9 KiB, text/plain)"

:-)
Comment 19 Adam Weinberger 2007-08-11 18:28:03 UTC
We have users asking you to change this. We have developers asking you to change this. We have translators asking you to change this. We have distros giving up and changing it themselves. Are you absolutely positive that you know what American English users want?
Comment 20 bi2h5da02 2007-08-11 20:11:11 UTC
(In reply to comment #19)
> We have users asking you to change this. We have developers asking you to
> change this. We have translators asking you to change this. We have distros
> giving up and changing it themselves. Are you absolutely positive that you know
> what American English users want?

I'm an American English user and I like it the way it is.  Ubuntu needs to remove their "patch" so the disk sizes are consistent with partition managers.