KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.84k stars 454 forks source link

Screenfetch reporting wrong total filesystem size when btrfs is used on the disk #688

Open dan1410 opened 4 years ago

dan1410 commented 4 years ago

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report

Screenfetch is reporting wrong total filesystem size when btrfs is used; my configuration is as follows:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  1.4M  1.9G   1% /run
/dev/sda3       928G  4.6G  921G   1% /
tmpfs           1.9G  4.0K  1.9G   1% /tmp
/dev/sda3       928G  4.6G  921G   1% /home
/dev/sda1       508M  287M  221M  57% /boot
tmpfs           373M  4.0K  373M   1% /run/user/1000

In btrfs mountpoints are pointing to a single filesystem (see / and /home above), so in my case 928G total and 921G free space is counted twice.

Is the bug still present @ https://github.com/KittyKatt/screenFetch/raw/master/screenfetch-dev => yes

screenfetch -v

:: Finding distro...found as 'Fedora '
:: Finding hostname and user...found as '[redacted]'
:: Finding kernel version...found as 'x86_64 Linux 5.8.4-200.fc32.x86_64'
:: Finding current uptime...found as '2d 0m'
:: Finding current package count...found as '1115'
:: Finding current shell...found as 'bash 5.0.17'
:: Finding current resolution(s)...found as 'No X Server'
:: Finding desktop environment...found as 'Not Present'
:: Finding window manager...found as 'Not Found'
:: Finding window manager theme...found as 'Not Found'
:: Finding GTK2 theme...found as 'Not Found'
:: Finding GTK3 theme...found as 'Adwaita'
:: Finding icon theme...found as 'Not Found'
:: Finding user font...found as 'Not Found'
:: Finding current CPU...found as 'Intel Core i5 M 520 @ 4x 2.4GHz'
:: Finding current disk usage...found as '9.4G / 1.9T (1%%)'
:: Finding current GPU...found as 'Not Found'
:: Finding current RAM usage...found as '845MiB / 3726MiB'