mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
memory: more stubs
This commit is contained in:
12
pfetch
12
pfetch
@@ -297,6 +297,18 @@ get_memory() {
|
|||||||
|
|
||||||
mem_used=$((mem_full - (mem_free / 1024)))
|
mem_used=$((mem_full - (mem_free / 1024)))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
OpenBSD*)
|
||||||
|
# If you run OpenBSD and can send me the full output of
|
||||||
|
# 'vm_stat' I'll be able to add full support here.
|
||||||
|
mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
||||||
|
;;
|
||||||
|
|
||||||
|
FreeBSD*|Dragonfly*)
|
||||||
|
# If you run FreeBSD or Dragonfly and can help me get
|
||||||
|
# the used memory amount, I'll be able to add support here.
|
||||||
|
mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
log memory "${mem_used:-?}MiB / ${mem_full:-?}MiB"
|
log memory "${mem_used:-?}MiB / ${mem_full:-?}MiB"
|
||||||
|
|||||||
Reference in New Issue
Block a user