forked from cromer/pamac-classic
fix #146
This commit is contained in:
parent
06fdcdc7bd
commit
c071258c24
@ -1351,7 +1351,7 @@ namespace Pamac {
|
|||||||
text.append (previous_textbar);
|
text.append (previous_textbar);
|
||||||
timer.start ();
|
timer.start ();
|
||||||
} else {
|
} 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);
|
download_rate = ((download_rate * rates_nb) + (uint64) ((xfered - previous_xfered) / timer.elapsed ())) / (rates_nb + 1);
|
||||||
rates_nb++;
|
rates_nb++;
|
||||||
}
|
}
|
||||||
@ -1400,7 +1400,7 @@ namespace Pamac {
|
|||||||
fraction = 1;
|
fraction = 1;
|
||||||
previous_filename = "";
|
previous_filename = "";
|
||||||
} else {
|
} 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);
|
download_rate = ((download_rate * rates_nb) + (uint64) ((xfered - previous_xfered) / timer.elapsed ())) / (rates_nb + 1);
|
||||||
rates_nb++;
|
rates_nb++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user