! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[patch] Always report 2 decimal places when data speed is >=1MiB/Sec
Status:
RESOLVED: FIXED
Product:
Xfce4-netload-plugin
Component:
General

Comments

Description OmegaPhil 2014-09-09 19:33:18 CEST
Created attachment 5645 
Always report 2 decimal places when data speed is >=1MiB/Sec

Based off Debian package v1.2.0-1.

I have had a VDSL2 connection for a few years now, and often see speeds of >1MiB/Sec. With the current code, the speed is rounded to the nearest MiB - this kills off too much detail for me.

The attached patch is a simple way for me to get back at that detail - when format_byte_humanreadable is called, it is passed small (<1MiB) and large number digit values, and displays the relevant number of digits as appropriate.

Personally once MiB speeds are reached, I always want 2dp of detail. Are there any changes I should make with this patch?
Comment 1 Mike Massonnet editbugs 2014-11-02 15:24:03 CET
git commit c7b9a893a3792ca9c6203a27b1fe6c78111b15ac

Bug #11152

Reported by:
OmegaPhil
Reported on: 2014-09-09
Last modified on: 2014-11-02

People

Assignee:
Florian Rivoal
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information