PteroStats icon indicating copy to clipboard operation
PteroStats copied to clipboard

DIscordJS V-13 With Some Commands

Open ShreshthTiwari opened this issue 2 years ago • 6 comments

ShreshthTiwari avatar May 16 '22 03:05 ShreshthTiwari

@ShreshthTiwari Please use 1024 for mb/gb and not 1000 the rest is working perfectly so this can be merged after that change @HirziDevs

nickdevnl avatar Jul 08 '22 14:07 nickdevnl

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

ShreshthTiwari avatar Jul 09 '22 06:07 ShreshthTiwari

Servers count ram/disk in Gbit and not in GB so its better to update it to Gbit so its 1024

nickdevnl avatar Jul 14 '22 10:07 nickdevnl

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

ShreshthTiwari avatar Jul 14 '22 11:07 ShreshthTiwari

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

nickdevnl avatar Jul 14 '22 20:07 nickdevnl

Is this PR still maintained?

snaildos avatar Sep 12 '22 03:09 snaildos