Revision: 7490 http://sourceforge.net/p/ipcop/svn/7490 Author: owes Date: 2014-04-19 07:07:19 +0000 (Sat, 19 Apr 2014) Log Message: ----------- no reads no writes may not happen often, but it is possible with FLASH install. Better to update RRD in that case.
Modified Paths: -------------- ipcop/trunk/src/scripts/makegraphs.pl Modified: ipcop/trunk/src/scripts/makegraphs.pl =================================================================== --- ipcop/trunk/src/scripts/makegraphs.pl 2014-04-18 08:16:43 UTC (rev 7489) +++ ipcop/trunk/src/scripts/makegraphs.pl 2014-04-19 07:07:19 UTC (rev 7490) @@ -425,13 +425,11 @@ my $diskstat = `cat /proc/diskstats | grep -m 1 -E '[h|s]d'`; chomp($diskstat); - if ($diskstat ne "") { + if ($diskstat ne '') { $diskstat =~ /[h|s]d.\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/; $readsect = $3; $writesect = $7; - } - if ($readsect && $writesect) { RRDs::update("$rrdlog/disk.rrd", "-t", "readsect:writesect", "N:$readsect:$writesect"); $ERROR = RRDs::error; print "Error in RRD::update for disk: $ERROR\n" if $ERROR; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn