custodian / harbour-systemmonitor

Monitor SailfishOS for basic system activity
8 stars 10 forks source link

Measurement units are messed up #9

Open Self-Perfection opened 9 years ago

Self-Perfection commented 9 years ago

For example 20150114190119_50 Graph is labeled "Mb", lowercase "b" thus it should show values in megabits, but actual values looks like it is megabytes. This mistake is present in all graphs and settings page (size of stored history data). Megabytes are abbreviated to MB (capital "B"). But please consider using mebibytes (MiB) for displaying data amount. You never know if "megabyte" is 10^6 bytes or 2^20 bytes. Mebibyte is always 2^20 bytes, no exceptions, no ambiguity.

Another problem is data rate measurement units. 20150114190210_50 I believe this graph shows not kilobits, but kilobits per second (correct abbreviations: kbit/s, kb/s or kbps). See data rate units in wikipedia for more info.

Considering all messed up values I am completely confused about numbers in top right corner of throughput graph. Is it kbps? kBps? kb? kB? Is it average / maximum rate? After a bit of exeperimenting (d'oh, this should be obvious from interface without investigation!) I've concluded that it is more likely total transferred data for displayed period of time. But I am still not sure if it is displayed as bits or bytes.

custodian commented 9 years ago

All values are bytes divided by 1000, what should be used?

Top right corner shows data depending on graph type: current, average(no such graphs are present yet) or total.

Self-Perfection commented 9 years ago

All values are bytes divided by 1000, what should be used?

Ok, here is quick cheat sheet for power of 10 data amount units:

Amount Name Unit symbol
1000 bits kilobit kbit or kb
1000 bytes kilobyte kB
10^6 bits megabit Mbit or Mb
10^6 bytes megabyte MB
10^9 bits gigabit Gbit or GB
10^9 bytes gigabyte GB

and for data rate units:

Amount Name Unit symbol
1000 bits per second kilobit per second kbit/s or kb/s
1000 bytes per second kilobyte per second kB/s
10^6 bits per second megabit per second Mbit/s or Mb/s
10^6 bytes per second megabyte per second MB/s

Top right corner shows data depending on graph type: current, average(no such graphs are present yet) or total.

There really should be some notice to indicate which mode is used for current graph. For example: