[ARVADOS] updated: 3cd9054aa2699473f1af45c165441d7276162b46
Git user
git at public.curoverse.com
Fri May 26 15:26:00 EDT 2017
Summary of changes:
services/nodemanager/arvnodeman/jobqueue.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via 3cd9054aa2699473f1af45c165441d7276162b46 (commit)
from dbd91c317d54da7123bee4f2d496b440b2ba9393 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3cd9054aa2699473f1af45c165441d7276162b46
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Fri May 26 15:25:56 2017 -0400
11767: Slurm apparently will print out half values (like 2.5G).
diff --git a/services/nodemanager/arvnodeman/jobqueue.py b/services/nodemanager/arvnodeman/jobqueue.py
index 27e769b..a35bd92 100644
--- a/services/nodemanager/arvnodeman/jobqueue.py
+++ b/services/nodemanager/arvnodeman/jobqueue.py
@@ -123,11 +123,11 @@ class JobQueueMonitorActor(clientactor.RemotePollLoopActor):
if u in ("M", "m"):
return int(v)
elif u in ("G", "g"):
- return int(v) * 2**10
+ return float(v) * 2**10
elif u in ("T", "t"):
- return int(v) * 2**20
+ return float(v) * 2**20
elif u in ("P", "p"):
- return int(v) * 2**30
+ return float(v) * 2**30
else:
return int(x)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list