Commit 540f3621 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Get rid of TBOSIDRebootWaittime(); using the object method instead.

parent 5ff77c65
......@@ -1306,26 +1306,6 @@ sub TBOSMaxConcurrent ($)
return $osinfo->max_concurrent();
}
#
# Returns the reboot waittime.
#
# usage: TBOSIDRebootWaittime(char *osid)
# returns >= 1 if there is a waittime
# returns undef if there is no waittime
# returns 0 if not valid.
#
sub TBOSIDRebootWaittime ($)
{
my ($osid) = @_;
require OSinfo;
my $osinfo = OSinfo->Lookup($osid);
return 0
if (!defined($osinfo));
return $osinfo->reboot_waittime();
}
#
# Returns the number of nodes that are supposedly booting an OS. A list of
# nodes that should be excluded from this count can be given.
......
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