Re: quota display in iptables -L

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Well... Check out these links:

http://en.wikipedia.org/wiki/Byte
http://www.unitjuggler.com/convert-memory-from-GB-to-GiB.html

2012-03-09 17:35 keltezéssel, James Anderson írta:
31997506400-31997506128=272
You are under the quota!
Thank you for your reply. By discrepancy I mean iptables -L -v showing
32GB and iptables-save showing the correct point where it stopped, at
the quota. That's a 2.2GB difference.

29.8GiByte (binary) = 31 997 506 355.2 Byte = 31.997 506 355 GByte (SI) (nearly 32 000 000 000 Byte = 32 GByte)

There is no 2.2 GB difference... :D You are mixing prefixes... :D GiByte != GByte

See below:

29.8GiByte (binary) = 29.8*1024*1024*1024 = 31 997 506 355.2 Byte
29.8GByte (SI) = 29.8*1000*1000*1000 = 29 800 000 000 Byte

32GiByte (binary) = 32*1024*1024*1024 = 34 359 738 368 Byte
32GByte (SI) = 32*1000*1000*1000 = 32 000 000 000 Byte

31 997 506 400 Byte = 31.997 506 400 GByte (SI)
31 997 506 400 Byte = 29.8000000417232513427734375 GiByte (binary)

32 000 000 000 Byte = 32GByte (SI)
32 000 000 000 Byte = 29.802322387695 GiByte (binary)

Swifty

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux