mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Memory [IRIX]: Added initial support
This commit is contained in:
7
neofetch
7
neofetch
@@ -1295,6 +1295,13 @@ get_memory() {
|
|||||||
mem_used="$((mem_total - mem_free))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
mem_label="MB"
|
mem_label="MB"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"IRIX")
|
||||||
|
mem_stat=($(pmem | head -1))
|
||||||
|
mem_total="$((${mem_stat[3]} / 1024))"
|
||||||
|
mem_free="$((${mem_stat[5]} / 1024))"
|
||||||
|
mem_used="$((mem_total - mem_free))"
|
||||||
|
;;
|
||||||
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