Memory [HP-UX]: Add partial support
This commit is contained in:
parent
d233e5bb2e
commit
9b51f9f528
1 changed files with 7 additions and 0 deletions
7
neofetch
7
neofetch
|
@ -1356,6 +1356,13 @@ get_memory() {
|
|||
mem_free="$((mem_stat[5] / 1024))"
|
||||
mem_used="$((mem_total - mem_free))"
|
||||
;;
|
||||
|
||||
"HP-UX")
|
||||
# Partial support. Again, hppa and IA64 have a different
|
||||
# command of how to access this. And they need root for
|
||||
# some rason.
|
||||
mem_free="$(($(vmstat | awk 'NR==3{printf $5}') / 1024))"
|
||||
;;
|
||||
esac
|
||||
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue