cjbassi / gotop

A terminal based graphical activity monitor inspired by gtop and vtop
GNU Affero General Public License v3.0
7.36k stars 436 forks source link

Rounding Issue #188

Open cking opened 4 years ago

cking commented 4 years ago

I opened gotop just for fun. I formatted /dev/sdd1 (mounted on /mnt/external in the screenshot below) freshly as a 1.8TB big hard drive. In the overview it cleary says it is used 0% and has 1 TB free. I expected it to round up to 2TB instead of down to 1TB.

Required information:

image

Disk /dev/sdd: 1,84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD2003FZEX-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A2364232-5354-48A4-AF01-303C36AC45D2

Device     Start        End    Sectors  Size Type
/dev/sdd1   2048 3907028991 3907026944  1,8T Linux filesystem
xxxserxxx commented 4 years ago

Hi @cking. I hate to have to ask you to do this, but could you please open this again on https://github.com/xxxserxxx/gotop? Active development has moved to that other project, and this project is suspended as cjbassi is working on something else.

If you open this ticket on the other repo, I'll look into it.

Incidentally, what led you to this repository?