mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-10-30 13:00:31 +00:00
docs: update
This commit is contained in:
1 parent
223de3d82a
commit
b4bd81e915
1 file changed
+2
-2
@@ -443,12 +443,12 @@ get_memory() {
|
|||||||
vm.stats.vm.v_cache_count)
|
vm.stats.vm.v_cache_count)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Calculate the amount of free memory.
|
# Calculate the amount of used memory.
|
||||||
# $1: hw.pagesize
|
# $1: hw.pagesize
|
||||||
# $2: vm.stats.vm.v_inactive_count
|
# $2: vm.stats.vm.v_inactive_count
|
||||||
# $3: vm.stats.vm.v_free_count
|
# $3: vm.stats.vm.v_free_count
|
||||||
# $4: vm.stats.vm.v_cache_count
|
# $4: vm.stats.vm.v_cache_count
|
||||||
mem_free=$((($2 + $3 + $4) * $1 / 1024 / 1024))
|
mem_used=$((($2 + $3 + $4) * $1 / 1024 / 1024))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
NetBSD*)
|
NetBSD*)
|
||||||
|
|||||||
Reference in new issue
Block a user