IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34096


Ignore:
Timestamp:
Jun 26, 2012, 3:20:39 PM (14 years ago)
Author:
Serge CHASTEL
Message:

Added stsci nodes to nebulous plot

Location:
trunk/ippMonitor/czartool/czartool
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/CzarDb.pm

    r33814 r34096  
    927927        my ($host, $used, $available, $writable, $readable) = @row;
    928928   
    929         if (($used/($used+$available))*100 > $limit) {$underLimit = 0;}
    930         else {$underLimit = 1;}
     929        if (($used+$available) == 0) {
     930          $underLimit = 1;
     931        } elsif (($used/($used+$available))*100 > $limit) {
     932          $underLimit = 0;
     933        } else {
     934          $underLimit = 1;
     935        }
    931936
    932937        # Col 1: host
  • trunk/ippMonitor/czartool/czartool/Nebulous.pm

    r32097 r34096  
    111111        }
    112112        elsif (($line =~ m/(ipp[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)||
    113                ($line =~ m/(ippb[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)) {
     113               ($line =~ m/(ippb[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i) ||
     114               ($line =~ m/(stsci0[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)) {
    114115       
    115116            $self->{_totalHosts}++;
  • trunk/ippMonitor/czartool/czartool/Plotter.pm

    r33814 r34096  
    679679
    680680        "\n";
    681 
    682681    close GP;
    683682}
Note: See TracChangeset for help on using the changeset viewer.