From b72662bccbfc516d2b16b96b1e54456fcfe9e2f1 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Tue, 23 Dec 2014 17:10:03 -0800 Subject: [PATCH] Filter out "NaNs" from the fetch output, we are getting "-nan" on linux, vs. "nan" on FreeBSD. --- tests/dcounter1 | 4 ++-- tests/dcounter1.output | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/dcounter1 b/tests/dcounter1 index ad5e6702..b75d76b7 100755 --- a/tests/dcounter1 +++ b/tests/dcounter1 @@ -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" diff --git a/tests/dcounter1.output b/tests/dcounter1.output index a41d8146..a44b8816 100644 --- a/tests/dcounter1.output +++ b/tests/dcounter1.output @@ -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 -- 2.47.3