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
dbf16f37
Commit
dbf16f37
authored
Feb 23, 2005
by
Jessica Severin
Browse files
when hive tables are empty a SUM(...) return NULL so need to check for that
parent
74e7ce80
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 @
dbf16f37
...
...
@@ -589,7 +589,9 @@ sub get_hive_progress
$sth
->
execute
();
my
(
$done
,
$total
)
=
$sth
->
fetchrow_array
();
$sth
->
finish
;
my
$completed
=
0.0
;
$done
=
0
unless
(
$done
);
$total
=
0
unless
(
$total
);
my
$completed
=
0.0
;
$completed
=
((
100.0
*
$done
)
/
$total
)
if
(
$total
>
0
);
printf
("
hive %1.3f%% 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