Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
b006cf5a
Commit
b006cf5a
authored
Dec 09, 2004
by
Jessica Severin
Browse files
fixed divide by zero error when a hive is empty (no jobs)
parent
da353cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+3
-1
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
b006cf5a
...
...
@@ -457,7 +457,9 @@ sub get_hive_progress
$sth
->
execute
();
my
(
$done
,
$total
)
=
$sth
->
fetchrow_array
();
$sth
->
finish
;
printf
("
hive %1.2f%% complete (%d done / %d total)
\n
",
(
$done
/
$total
*
100
),
$done
,
$total
);
my
$completed
=
0.0
;
$completed
=
(
$done
/
$total
*
100
)
if
(
$total
>
0
);
printf
("
hive %1.2f%% complete (%d done / %d total)
\n
",
$completed
,
$done
,
$total
);
return
$done
,
$total
;
}
...
...
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