Ignore:
Timestamp:
06/06/13 22:06:56 (11 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_curr

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