Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a6a2fb96
Commit
a6a2fb96
authored
Jul 03, 2014
by
Mike Hibler
Browse files
Fix divide-by-zero.
parent
d8be2b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/imagezip/imagezip.c
View file @
a6a2fb96
...
...
@@ -2549,7 +2549,7 @@ compress_status(int sig)
if
(
sig
==
0
)
{
fprintf
(
stderr
,
"Image size: %llu bytes
\n
"
,
(
unsigned
long
long
)
datawritten
);
bps
=
(
bytescompressed
*
1000
)
/
ms
;
bps
=
ms
?
(
bytescompressed
*
1000
)
/
ms
:
0
;
fprintf
(
stderr
,
"%.3fMB/second compressed
\n
"
,
(
double
)
bps
/
(
1024
*
1024
));
}
...
...
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