Skip to content
Snippets Groups Projects
Commit c071258c authored by guinux's avatar guinux
Browse files

fix #146

parent 06fdcdc7
No related branches found
No related tags found
No related merge requests found
......@@ -1351,7 +1351,7 @@ namespace Pamac {
text.append (previous_textbar);
timer.start ();
} else {
if (timer.elapsed () > 0) {
if (timer.elapsed () > 0.1) {
download_rate = ((download_rate * rates_nb) + (uint64) ((xfered - previous_xfered) / timer.elapsed ())) / (rates_nb + 1);
rates_nb++;
}
......@@ -1400,7 +1400,7 @@ namespace Pamac {
fraction = 1;
previous_filename = "";
} else {
if (timer.elapsed () > 0) {
if (timer.elapsed () > 0.1) {
download_rate = ((download_rate * rates_nb) + (uint64) ((xfered - previous_xfered) / timer.elapsed ())) / (rates_nb + 1);
rates_nb++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment