Ignore:
Timestamp:
Apr 17, 2018, 11:02:07 PM (7 years ago)
Author:
gegorbet
Message:

cluster status fix to insure queued,running counts are numeric

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cluster_status.php

    r35 r36  
    333333      }
    334334
     335      // Insure queued,running counts are numeric
     336      $que_s          = $que;
     337      $run_s          = $run;
     338      $que_e          = preg_replace( '/=/', "", $que_s );
     339      $run_e          = preg_replace( '/=/', "", $run_s );
     340      $que            = intval( $que_e );
     341      $run            = intval( $run_e );
     342if($que!=$que_s ||  $run!=$run_s)
     343 echo "$self:   *** que s,e,i $que_s $que_e $que  run s,e,i $run_s $run_e $run\n";
     344
     345      // Save cluster status values
    335346      $a[ 'cluster' ] = $clname;
    336347      $a[ 'queued'  ] = $que;
Note: See TracChangeset for help on using the changeset viewer.