Commit 1ad74774 authored by Leigh Stoller's avatar Leigh Stoller

Exit with non-zero status if overbooked in the timeseries option.

parent 95b0e701
......@@ -197,6 +197,8 @@ if( $minfree ) {
}
if( $timeseries ) {
my $error = 0;
print "Time Unavailable Held Free\n";
print "---------- ----- ---- ----\n";
......@@ -204,9 +206,11 @@ if( $timeseries ) {
printf( "%s %5d %5d %5d\n",
strftime( "%Y-%m-%d %H:%M", localtime( $rec->{'t'} ) ),
$rec->{'unavailable'}, $rec->{'held'}, $rec->{'free'} );
if ($rec->{'free'} < 0) {
$error = 1;
}
}
exit( 0 );
exit( $error );
}
if( $pressure ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment