Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
machinejobfeatures
mjf-scripts
Commits
a4e6db55
Commit
a4e6db55
authored
Mar 01, 2016
by
Andrew McNab
Browse files
Fix hs06_job in prologue.user
parent
70dd7cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
a4e6db55
VERSION=00.0
4
VERSION=00.0
5
prologue.user
View file @
a4e6db55
...
...
@@ -139,14 +139,14 @@ except:
# hs06_job is a float so special handling
if
'hs06_job='
in
fromRun
+
fromSysconfig
:
try
:
matchObject
=
re
.
search
(
key
+
"
=([0-9.]*)"
,
fromSysconfig
+
fromRun
)
matchObject
=
re
.
search
(
"hs06_job
=([0-9.]*)"
,
fromSysconfig
+
fromRun
)
hs06_job
=
float
(
matchObject
.
group
(
1
))
except
:
pass
if
hs06_job
:
# Has been defined here or before
open
(
jobfeaturesDir
+
'/hs06_job'
,
'w'
).
write
(
'%.2f'
%
hs06_job
)
if
hs06_job
:
# Has been defined here or before
open
(
jobfeaturesDir
+
'/hs06_job'
,
'w'
).
write
(
'%.2f'
%
hs06_job
)
# The rest are integers so handle with a list
for
key
in
[
'allocated_cpu'
,
'wall_limit_secs'
,
'cpu_limit_secs'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment