Skip to content

Commit

Permalink
FULLY POSIX!
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneCalculator authored Feb 24, 2022
1 parent 6f3ace3 commit 3346ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nerdfetch
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ case $ostype in
mem_used="idk"
esac
memstat="${mem_used}/${mem_full} MB"
if which dc > /dev/null 2>&1; then
mempercent="($(echo 100 ${mem_used} \* ${mem_full} / p | dc)%)"
if which expr > /dev/null 2>&1; then
mempercent="($(expr $(expr ${mem_used} \* 100 / ${mem_full} ))%)"
fi
## DEFINE COLORS

Expand Down

0 comments on commit 3346ac3

Please sign in to comment.