Commit 834351f3 authored by Leigh Stoller's avatar Leigh Stoller

Okay, 2.5 minimum_nodes (one delay node) rounded down to 2 makes no

sense at all. Use ceil ...
parent cb66c26d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# #
use English; use English;
use Getopt::Std; use Getopt::Std;
use POSIX qw(setsid); use POSIX qw(setsid ceil);
use POSIX ":sys_wait_h"; use POSIX ":sys_wait_h";
# #
...@@ -4318,6 +4318,7 @@ sub CreateTopFile() ...@@ -4318,6 +4318,7 @@ sub CreateTopFile()
# Set estimations # Set estimations
$minimum_nodes = $physnode_count + keys(%delaynodes)/$DELAYCAPACITY; $minimum_nodes = $physnode_count + keys(%delaynodes)/$DELAYCAPACITY;
$maximum_nodes = $physnode_count + keys(%delaynodes); $maximum_nodes = $physnode_count + keys(%delaynodes);
$minimum_nodes = POSIX::ceil($minimum_nodes);
if (! $impotent) { if (! $impotent) {
DBQueryFatal("UPDATE experiments set maximum_nodes=$maximum_nodes, " . DBQueryFatal("UPDATE experiments set maximum_nodes=$maximum_nodes, " .
......
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