Ignore:
Timestamp:
06/06/13 22:06:56 (12 years ago)
Author:
tbretz
Message:
Do not add zero values, they just bias the average.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/munin/agilent_volt

    r16761 r16762  
    1414esac
    1515
    16 DATA220=`echo -e -n "meas:volt?\n" | nc 10.0.100.220 5025`
    17 RC220=$?
     16DATA=`echo -e -n "meas:volt?\n" | nc 10.0.100.220 5025`
     17RC=$?
     18DATA=`printf %.3f ${DATA}`
    1819
    19 if [ "$RC220" == "0" ] ; then
    20    echo agilent_volt1.value `printf %.3f ${DATA220}`
     20if [ "$RC" == "0" -a "$DATA" != "0.000" ] ; then
     21   echo agilent_volt1.value $DATA
    2122fi
    2223
    23 DATA222=`echo -e -n "meas:volt?\n" | nc 10.0.100.222 5025`
    24 RC222=$?
     24DATA=`echo -e -n "meas:volt?\n" | nc 10.0.100.224 5025`
     25RC=$?
     26DATA=`printf %.3f ${DATA}`
    2527
    26 if [ "$RC222" == "0" ] ; then
    27    echo agilent_volt3.value `printf %.3f ${DATA222}`
     28if [ "$RC" == "0" -a "$DATA" != "0.000" ] ; then
     29   echo agilent_volt2.value $DATA
    2830fi
    2931
    30 DATA224=`echo -e -n "meas:volt?\n" | nc 10.0.100.224 5025`
    31 RC224=$?
     32DATA=`echo -e -n "meas:volt?\n" | nc 10.0.100.222 5025`
     33RC=$?
     34DATA=`printf %.3f ${DATA}`
    3235
    33 if [ "$RC224" == "0" ] ; then
    34    echo agilent_volt2.value `printf %.3f ${DATA224}`
     36if [ "$RC" == "0" -a "$DATA" != "0.000" ] ; then
     37   echo agilent_volt3.value $DATA
    3538fi
    3639
Note: See TracChangeset for help on using the changeset viewer.