diff options
author | Danilo G. Baio <dbaio@FreeBSD.org> | 2017-06-06 00:47:24 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2017-06-06 00:47:24 +0000 |
commit | 9133f75cb0dc678c39383983f79883fc606791b9 (patch) | |
tree | 0c2a47f4b0ce44c667279ca21131f9258e97b1b7 /net-mgmt/cacti88/files/patch-scripts__diskfree.pl | |
parent | Don't pass the default version in DEPENDS_ARGS. (diff) |
Repocopy from net-mgmt/cacti (r416066) -> net-mgmt/cacti88
Web-driven graphing interface for RRDTool (Old version of net-mgmt/cacti)
New releases of Cacti are still unable to work with useful plugins like
"GPS Map" and "Network Weathermap".
While here, minor fixes and get improvements from the current port.
PR: 219685
Submitted by: Vinicius Zavam <egypcio@googlemail.com>
Approved by: garga (mentor)
Differential Revision: https://reviews.freebsd.org/D11023
Diffstat (limited to 'net-mgmt/cacti88/files/patch-scripts__diskfree.pl')
-rw-r--r-- | net-mgmt/cacti88/files/patch-scripts__diskfree.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net-mgmt/cacti88/files/patch-scripts__diskfree.pl b/net-mgmt/cacti88/files/patch-scripts__diskfree.pl new file mode 100644 index 000000000000..9e8517401141 --- /dev/null +++ b/net-mgmt/cacti88/files/patch-scripts__diskfree.pl @@ -0,0 +1,9 @@ +--- scripts/diskfree.pl.orig 2017-06-01 00:09:48 UTC ++++ scripts/diskfree.pl +@@ -1,5 +1,5 @@ + #!/usr/local/bin/perl +-open(PROCESS,"df --block-size=1024 -P $ARGV[0] | grep -v Filesystem |"); ++open(PROCESS,"df -k $ARGV[0] | grep -v Filesystem |"); + foreach (<PROCESS>) { + if ($_ =~ /($ARGV[0])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])%(.* )/) { + print "megabytes:$7 percent:$9"; |