dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.88k stars 1.76k forks source link

battery bar elapsed maths incorrect #2275

Open mightbesimon opened 1 year ago

mightbesimon commented 1 year ago

Description

Battery at 94% charged (so 6% used). barinfo shows 94% elapsed when it should show 6% elapsed.

line 3844 to 3846 should say $((100-${battery/\%*})) instead of ${battery/\%*}

Neofetch version

7.1.0

Screenshot

incorrect actual behaviour: actual

expected behaviour: expected

Config file

config.conf

Verbose log

neofetchlog

  1. Run neofetch -vv 2> neofetchlog
  2. Upload the contents of neofetchlog to pastebin, gist or equivalent.