Closed ShreshthTiwari closed 1 year ago
I did 1000 intentionally bcz if it is 1001MB or 1023MB it will show as that and its not looking good instead it will show 0.9GB
Servers count ram/disk in Gbit and not in GB so its better to update it to Gbit so its 1024
Huh it is calculating GB by dividing it with 1024 Just the difference is it will still divide it with 1024 if it's more than 999MB So as to show 0.9 GB instead of 1001MB
1000 MB is 1 GB
(this is valid when it is expressly stated, as it is, e.g., on computer hard disks)
1024 MB is 1 GB for calculations.
Same with KB and 1 MB, B and 1KB.
1 Bit = 0 or 1 8Bits = 1B 1024B = 1KB 1024KB = 1MB 1024MB = 1GB
Bit - Binary Digit B - Bytes KB - Kilo Bytes MB - Mega Bytes GB - Giga Bytes
Is this PR still maintained?
@ShreshthTiwari Please use 1024 for mb/gb and not 1000 the rest is working perfectly so this can be merged after that change @HirziDevs