mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Memory [HP-UX]: Add partial support
This commit is contained in:
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}"
|
||||
|
||||
|
Reference in New Issue
Block a user