[Goodies-dev] [Bug 11152] New: [patch] Always report 2 decimal places when data speed is >=1MiB/Sec

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Sep 9 19:33:18 CEST 2014


            Bug ID: 11152
           Summary: [patch] Always report 2 decimal places when data speed
                    is >=1MiB/Sec
    Classification: Panel Plugins
           Product: Xfce4-netload-plugin
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: frivoal at xfce.org
          Reporter: OmegaPhil00 at startmail.com
        QA Contact: goodies-dev at xfce.org

Created attachment 5645
  --> https://bugzilla.xfce.org/attachment.cgi?id=5645&action=edit
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?

You are receiving this mail because:
You are the QA Contact for the bug.

More information about the Goodies-dev mailing list