Changeset 28862 for trunk/tools/czartool/Czarplot.pm
- Timestamp:
- Aug 6, 2010, 4:44:37 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/Czarplot.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/Czarplot.pm
r28846 r28862 347 347 my ($self) = @_; 348 348 349 my $outputFile = "/tmp/czarplot_hosts.png"; 350 351 my $inputFile = $self->{_czarDb}->createHostsData(); 349 my $outputFile = "/tmp/czarplot_hosts_space.png"; 350 my $limit = 97.0; 351 my $inputFile = $self->{_czarDb}->createHostsData($limit); 352 353 my $totalUsed = $self->{_czarDb}->getTotalClusterStorageAsPercentage(); 354 355 my $totalPercent = sprintf("%.1f%%", $totalUsed); 352 356 353 357 open (GP, "|/usr/bin/gnuplot -persist") or die "no gnuplot"; … … 358 362 "set term $self->{_outputFormat};" . 359 363 "set output \"$outputFile\";" . 360 "set title \"Nebulous disk use across IPP cluster \";" .364 "set title \"Nebulous disk use across IPP cluster ($totalPercent of total allocated)\";" . 361 365 "set style fill solid 1.00 border -1;" . 362 366 "set style histogram rowstacked;" . … … 364 368 "set ylabel \"Space (TB)\";" . 365 369 "set xtic rotate by -90 scale 0;" . 366 "plot '$inputFile' using 2:xtic(1) t \"Used\" , '' using 3 t \"Available\";" . 370 "plot '$inputFile' " . 371 "using 2:xtic(1) t \"Used\" lt 7," . 372 "'' using 3 t \"Over $limit% used\" lt 1," . 373 "'' using 4 t \"Unavailable\" fs solid 0.50 lt -1 ," . 374 "'' using 5 t \"Free\" lt 2," . 375 "'' using 6 notitle fs solid 0.50 lt -1" . 376 ";" . 367 377 368 378 "\n";
Note:
See TracChangeset
for help on using the changeset viewer.
