]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Filter out "NaNs" from the fetch output, we are getting "-nan" on
authorMaksym Sobolyev <sobomax@sippysoft.com>
Wed, 24 Dec 2014 01:10:03 +0000 (17:10 -0800)
committerMaksym Sobolyev <sobomax@sippysoft.com>
Wed, 24 Dec 2014 01:10:03 +0000 (17:10 -0800)
linux, vs. "nan" on FreeBSD.

tests/dcounter1
tests/dcounter1.output

index ad5e67028fe71b9bf0c56572f9b8d4c235f24487..b75d76b735ba115ac5c161a539ce4c6a33271b27 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/local/bin/bash
 
 . $(dirname $0)/functions
 
@@ -3615,5 +3615,5 @@ do_update
 report "update"
 
 $RRDTOOL fetch ${BUILD}.rrd AVERAGE -r 600 -s 1300000000 -e 1300003600 | grep ^1300 | \
-  $DIFF - $BASEDIR/dcounter1.output
+  grep -v nan | $DIFF - $BASEDIR/dcounter1.output
 report "fetch"
index a41d81469f98119d1f4578efcd3f06f3d0b787a3..a44b8816ea6874ae744aaa7b01212dd2d75bc6ce 100644 (file)
@@ -1,7 +1,5 @@
-1300000200: nan nan
 1300000800: 9.0471698113e-04 3.6784853333e-02
 1300001400: 8.5592592593e-04 3.6354291667e-02
 1300002000: 8.8740740741e-04 3.5968193333e-02
 1300002600: 1.0197392924e-03 3.5596546667e-02
 1300003200: 9.8277777778e-04 3.5234055000e-02
-1300003800: nan nan