mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Changed ram units (module)
This commit is contained in:
parent
bad8687016
commit
f5a2b06081
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ PREFIX=' '
|
||||||
|
|
||||||
get_ram()
|
get_ram()
|
||||||
{
|
{
|
||||||
TOTAL_RAM=$(free -mh | awk {'print $2'} | head -n 2 | tail -1)
|
TOTAL_RAM=$(free -mh --si | awk {'print $2'} | head -n 2 | tail -1)
|
||||||
USED_RAM=$(free -mh | awk {'print $3'} | head -n 2 | tail -1)
|
USED_RAM=$(free -mh --si | awk {'print $3'} | head -n 2 | tail -1)
|
||||||
MB="MB"
|
MB="MB"
|
||||||
|
|
||||||
echo "$PREFIX$USED_RAM/$TOTAL_RAM"
|
echo "$PREFIX$USED_RAM/$TOTAL_RAM"
|
||||||
|
|
Loading…
Reference in a new issue