diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-10 17:43:05 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-10 17:43:05 -0300 |
commit | 4fa42f715128885c26b8c441da5cdcd426cc062b (patch) | |
tree | 522a8f05901c6ecde1983daa49f78a643dd777bf /dpi | |
parent | a39453a02f230683c480d7643b1ecfcd3a5ad7a2 (diff) | |
parent | 03b7fb49d8717416f3d1b13a9754f330a0322da6 (diff) |
merge
Diffstat (limited to 'dpi')
-rw-r--r-- | dpi/downloads.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc index c5d43d8b..5aa7a87c 100644 --- a/dpi/downloads.cc +++ b/dpi/downloads.cc @@ -583,7 +583,9 @@ void DLItem::update_size(int new_sz) prBar->move(1); } else { prBar->showtext(true); - double pos = 100.0 * (double)curr_bytesize / total_bytesize; + double pos = 100.0; + if (total_bytesize > 0) + pos *= (double)curr_bytesize / total_bytesize; prBar->position(pos); } } |