Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

RE: lug-bg: ifconfig output [was: Nejasni suobshtenija]


  • Subject: RE: lug-bg: ifconfig output [was: Nejasni suobshtenija]
  • From: "Georgi Sinapov" <georgi.sinapov@xxxxxxxxxx>
  • Date: Tue, 27 Jan 2004 14:46:52 +0200
  • Thread-topic: lug-bg: ifconfig output [was: Nejasni suobshtenija]

> -----Original Message-----
> From: owner-lug-bg@xxxxxxxxxxxxxxxxxx [mailto:owner-lug-bg@linux-
> bulgaria.org] On Behalf Of George Danchev
> Sent: Tuesday, January 27, 2004 2:00 PM
> To: lug-bg@xxxxxxxxxxxxxxxxxx
> Subject: Re: lug-bg: Nejasni suobshtenija
> 
> see: net-tools_1.60-9.diff.gz, partial output:
> @@ -843,10 +858,38 @@
>         tx = ptr->stats.tx_bytes;
>         short_rx = rx * 10;
>         short_tx = tx * 10;
> -       if (rx > 1048576) { short_rx /= 1048576;  strcpy(Rext, "Mb"); }
> -       else if (rx > 1024) { short_rx /= 1024;  strcpy(Rext, "Kb"); }
> -       if (tx > 1048576) { short_tx /= 1048576;  strcpy(Text, "Mb"); }
> -       else if (tx > 1024) { short_tx /= 1024;  strcpy(Text, "Kb"); }
> +       if (rx > 1125899906842624ull) {
> +           short_rx /= 1125899906842624ull;
> +           Rext = "PiB";
> +       } else if (rx > 1099511627776ull) {
> +           short_rx /= 1099511627776ull;
> +           Rext = "TiB";
> +       } else if (rx > 1073741824ull) {
> +           short_rx /= 1073741824ull;
> +           Rext = "GiB";
> +       } else if (rx > 1048576) {
> +           short_rx /= 1048576;
> +           Rext = "MiB";
> +       } else if (rx > 1024) {
> +           short_rx /= 1024;
> +           Rext = "KiB";
> ........
> ...
> 
> dont ask ;-)

Така е, така е. Проблемът прилича на политически:) RedHat and their own source.

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.