Memory [IRIX]: Added initial support
This commit is contained in:
parent
928bb6296d
commit
2fcbc778f1
1 changed files with 7 additions and 0 deletions
7
neofetch
7
neofetch
|
@ -1295,6 +1295,13 @@ get_memory() {
|
|||
mem_used="$((mem_total - mem_free))"
|
||||
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
|
||||
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue