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