Changeset 16762 for trunk/FACT++/munin


Ignore:
Timestamp:
06/06/13 22:06:56 (12 years ago)
Author:
tbretz
Message:
Do not add zero values, they just bias the average.
Location:
trunk/FACT++/munin
Files:
2 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
  • 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.