Commit 58474f5b authored by Mike Hibler's avatar Mike Hibler
Browse files

Avoid a divide by zero if a node_type has delay_capacity set to zero

parent 4207d74b
......@@ -5387,7 +5387,8 @@ sub CreateTopFile()
close(TOPFILE);
# Set estimations
$minimum_nodes = $physnode_count + keys(%delaynodes)/$DELAYCAPACITY;
$minimum_nodes = $physnode_count +
keys(%delaynodes)/($DELAYCAPACITY ? $DELAYCAPACITY : 1);
$maximum_nodes = $physnode_count + keys(%delaynodes);
$minimum_nodes = POSIX::ceil($minimum_nodes);
......
Supports Markdown
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