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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

Re: lug-bg: Nejasni suobshtenija


  • Subject: Re: lug-bg: Nejasni suobshtenija
  • From: George Danchev <danchev@xxxxxxxxx>
  • Date: Tue, 27 Jan 2004 13:59:56 +0200

On Tuesday 27 January 2004 13:05, Georgi Sinapov wrote:
> > -----Original Message-----
> > From: owner-lug-bg@xxxxxxxxxxxxxxxxxx [mailto:owner-lug-bg@linux-
> > bulgaria.org] On Behalf Of Hristo Erinin
> > Sent: Tuesday, January 27, 2004 12:31 PM
> > To: lug-bg@xxxxxxxxxxxxxxxxxx
> > Subject: Re: lug-bg: Nejasni suobshtenija
> >
> > Здравей,
> >
> > On Tue, 27 Jan 2004 10:36:10 +0200
> >
> > "Georgi Sinapov" <georgi.sinapov@xxxxxxxxxx> wrote:
> > >(335.4 MiB) и (2.4 GiB)
> > >       ^^^         ^^^
> >
> > http://physics.nist.gov/cuu/Units/binary.html
> >
> > При него всичко е наред. От приблизително net-tools-1.60 насам
> > (24.11.2004)
> > вместо Mb, Kb, Gb и т.н. се използват новите binary units. Обнови си
> > дистрибуцията ;-)).
>
> RH9, net-tools-1.60-12. Дори Fedora Devel. е с net-tools-1.60-20.

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 ;-)
-- 
pub 4096R/0E4BD0AB  2003-03-18  <keyserver.bu.edu ; pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 

============================================================================
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.