Package: ethstatus
Version: 0.4.6
Severity: wishlist
Tags: patch

Hallo,

When the system sends or receives more than 10000 packets per second
value does not fit into the format string, expanding it, and making
the display not so nice.

Perhaps something like the following?

--- ethstatus-0.4.6/ethstatus.c~        2016-03-27 06:28:36.000000000 +0200
+++ ethstatus-0.4.6/ethstatus.c 2016-03-29 02:32:45.130053386 +0200
@@ -395,20 +395,20 @@
    ks /= 1024;
    ps = pps[0];
    autoscale(autoscalebytes, ks * 1024);
-   center(14, " RX %9sB/s   %4d Packets/s", autoscalebytes, ps);
+   center(14, " RX %9sB/s   %5d Packets/s", autoscalebytes, ps);
 
    ks = (float)(bps[1]);
    ks /= 1024;
    ps = pps[1];
    autoscale(autoscalebytes, ks * 1024);
-   center(15, " TX %9sB/s   %4d Packets/s", autoscalebytes, ps);
+   center(15, " TX %9sB/s   %5d Packets/s", autoscalebytes, ps);
 
    ks = (float)(bps[0] + bps[1]);
    ks /= 1024;
    ps = pps[0] + pps[1];
    
    autoscale(autoscalebytes, ks * 1024);
-   center(16, "SUM %9sB/s   %4d Packets/s", autoscalebytes, ps);
+   center(16, "SUM %9sB/s   %5d Packets/s", autoscalebytes, ps);
 
    if(ks > stats.top_speed)
      {


Greetings
Sven-Haegar


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.4.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages ethstatus depends on:
ii  libc6        2.22-4
ii  libncurses5  6.0+20160319-1
ii  libtinfo5    6.0+20160319-1

ethstatus recommends no packages.

ethstatus suggests no packages.

-- no debconf information

Reply via email to