Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
7dd7a413
Commit
7dd7a413
authored
Jun 22, 2012
by
Matthieu Muffato
Browse files
bugfix: now works if the lines in the bacct output do not start with a space
parent
530e31c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/lsf_report.pl
scripts/lsf_report.pl
+2
-2
No files found.
scripts/lsf_report.pl
View file @
7dd7a413
...
...
@@ -116,8 +116,8 @@ sub main {
}
}
my
(
@keys
)
=
split
(
/\s+/
,
$lines
[
@lines
-
2
]);
my
(
@values
)
=
split
(
/\s+/
,
$lines
[
@lines
-
1
]);
my
(
@keys
)
=
split
(
/\s+/
,
'
'
.
$lines
[
@lines
-
2
]);
my
(
@values
)
=
split
(
/\s+/
,
'
'
.
$lines
[
@lines
-
1
]);
my
%usage
=
map
{
(
$keys
[
$_
]
=>
$values
[
$_
])
}
(
0
..
@keys
-
1
);
my
(
$mem
)
=
$usage
{
MEM
}
=~
/^(\d+)[KMG]$/
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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