memory: clean up
This commit is contained in:
parent
1b5c44f4bf
commit
92fbf1d810
6
pfetch
6
pfetch
|
@ -262,7 +262,7 @@ get_memory() {
|
||||||
case $key in
|
case $key in
|
||||||
MemTotal)
|
MemTotal)
|
||||||
mem_used=$((mem_used + val))
|
mem_used=$((mem_used + val))
|
||||||
mem_total=$val
|
mem_full=$val
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Shmem)
|
Shmem)
|
||||||
|
@ -276,11 +276,11 @@ get_memory() {
|
||||||
done < /proc/meminfo
|
done < /proc/meminfo
|
||||||
|
|
||||||
mem_used=$((mem_used / 1024))
|
mem_used=$((mem_used / 1024))
|
||||||
mem_total=$((mem_total / 1024))
|
mem_full=$((mem_full / 1024))
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
log memory "${mem_used}MiB / ${mem_total}MiB"
|
log memory "${mem_used}MiB / ${mem_full}MiB"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_ascii() {
|
get_ascii() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user