HirziDevs / PteroStats

PteroStats is a Discord App that designed to check Pterodactyl or Pelican Panel stats and post it to your Discord server.
https://pterostats.znproject.my.id
MIT License
188 stars 112 forks source link

DIscordJS V-13 With Some Commands #16

Closed ShreshthTiwari closed 1 year ago

nickdevnl commented 2 years ago

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

ShreshthTiwari commented 2 years 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

nickdevnl commented 2 years ago

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

ShreshthTiwari commented 2 years ago

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

nickdevnl commented 2 years ago

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

snaildos commented 2 years ago

Is this PR still maintained?