mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +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_free="$((mem_stat[5] / 1024))"
|
||||||
mem_used="$((mem_total - mem_free))"
|
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
|
esac
|
||||||
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user