Misc: Fix 100 character limit
This commit is contained in:
parent
0168516a2c
commit
ed0b0a9746
1 changed files with 5 additions and 3 deletions
6
neofetch
6
neofetch
|
@ -2270,8 +2270,10 @@ get_memory() {
|
||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
hw_pagesize="$(pagesize)"
|
hw_pagesize="$(pagesize)"
|
||||||
mem_total="$(($(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
|
pages_total=$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')
|
||||||
mem_free="$(($(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
|
pages_free=$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')
|
||||||
|
mem_total="$((pages_total * hw_pagesize / 1024 / 1024))"
|
||||||
|
mem_free="$((pages_free * hw_pagesize / 1024 / 1024))"
|
||||||
mem_used="$((mem_total - mem_free))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue