show load and capacity to two decimal places in kojid log output
This commit is contained in:
parent
4807679dee
commit
fc7f8a8b6e
1 changed files with 1 additions and 1 deletions
|
|
@ -1173,7 +1173,7 @@ class TaskManager(object):
|
|||
return False
|
||||
if self.task_load > hostdata['capacity']:
|
||||
self.status = "Over capacity"
|
||||
self.logger.info("Task load (%.1f) exceeds capacity (%.1f)" % (self.task_load, hostdata['capacity']))
|
||||
self.logger.info("Task load (%.2f) exceeds capacity (%.2f)" % (self.task_load, hostdata['capacity']))
|
||||
return False
|
||||
if len(self.tasks) >= options.maxjobs:
|
||||
# This serves as a backup to the capacity check and prevents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue