mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 23:20:30 -04:00
Add a few zfs related plugins [2] PR: 210494 [1] Submitted by: bcr [2] Reported by: Fabian Keil [1] Sponsored by: Absolight
8 lines
469 B
Text
8 lines
469 B
Text
--- plugins/node.d.freebsd/memory.in.orig 2014-11-24 21:46:24 UTC
|
|
+++ plugins/node.d.freebsd/memory.in
|
|
@@ -74,4 +74,4 @@ echo wired.value $(($WIRED_COUNT*$PAGESI
|
|
echo buffers.value $(($BUFFERS_COUNT))
|
|
echo cached.value $(($CACHE_COUNT*$PAGESIZE))
|
|
echo free.value $(($FREE_COUNT*$PAGESIZE))
|
|
-echo swap.value $(swapinfo -k | awk '{sum += $3}; END {print sum * 1024}')
|
|
+echo swap.value $(swapinfo -k | awk '!/^Total/ && !/^Device/ {sum += $3}; END {print sum * 1024}')
|