IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28923


Ignore:
Timestamp:
Aug 16, 2010, 2:02:58 PM (16 years ago)
Author:
rhenders
Message:

Mainly cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/Czarplot.pm

    r28870 r28923  
    154154    my ($self, $minY, $maxY) = @_;
    155155
     156    my $tmp;
     157    if (${$maxY} < ${$minY}) {
     158
     159        $tmp = ${$maxY};
     160        ${$maxY} = ${$minY};
     161        ${$minY} = $tmp;
     162    }
     163
    156164    my $border = (${$maxY} - ${$minY})/10;
    157165
     
    234242        "set xdata time;" .
    235243        "set timefmt \"$self->{_dateFormat}\";" .
     244    #    "set yrange [\"$minY\":\"$maxY\"];" .
    236245        "set xrange [\"$minX\":\"$maxX\"];" .
    237246        "set format x \"$timeFormat\";" .
     
    307316        "'$gnuplotFile' using 1:2 title \"Available\" with lines lt 2\n";
    308317
    309         print GP "\n";
     318    print GP "\n";
    310319    close GP;
    311320}
     
    349358
    350359    my $prefix = $self->{_outputPath} ? $self->{_outputPath} : "."; # TODO should be function for this
    351     my $outputFile = "$prefix/czarplot_hosts_space.png";
     360        my $outputFile = "$prefix/czarplot_hosts_space.png";
    352361    my $limit = 97.0;
    353362    my $inputFile = $self->{_czarDb}->createHostsData($limit);
     
    355364    my $totalUsed = $self->{_czarDb}->getTotalClusterStorageAsPercentage();
    356365
    357 my $totalPercent = sprintf("%.1f%%", $totalUsed);
     366    my $totalPercent = sprintf("%.1f%%", $totalUsed);
    358367
    359368    open (GP, "|/usr/bin/gnuplot -persist") or die "no gnuplot";
Note: See TracChangeset for help on using the changeset viewer.