Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faf67e3f authored by Felipe Leme's avatar Felipe Leme
Browse files

Increased estimated max progress of bugreports.

The initial estimate was based on earlier work done before new sections
were added, and it was too slow.

Ideally we should have a per-device estimate, but for N we'll just
increase the common max.

BUG: 26373682
Change-Id: I1a8ce7f09fc6588ac1513a20fa1149aab8c38351
parent b06f98aa
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -65,11 +65,10 @@ typedef void (for_each_tid_func)(int, int, const char *);
 *
 *
 * It does not need to match the exact sum of all sections, but ideally it should to be slight more
 * It does not need to match the exact sum of all sections, but ideally it should to be slight more
 * than such sum: a value too high will cause the bugreport to finish before the user expected (for
 * than such sum: a value too high will cause the bugreport to finish before the user expected (for
 * example, jumping from 70% to 100%), while a value too low will cause the progress to fluctuate
 * example, jumping from 70% to 100%), while a value too low will cause the progress to get stuck
 * down (for example, from 70% to 50%, since the actual max will be automatically increased every
 * at an almost-finished value (like 99%) for a while.
 * time it is reached).
 */
 */
static const int WEIGHT_TOTAL = 4000;
static const int WEIGHT_TOTAL = 6500;


/* Most simple commands have 10 as timeout, so 5 is a good estimate */
/* Most simple commands have 10 as timeout, so 5 is a good estimate */
static const int WEIGHT_FILE = 5;
static const int WEIGHT_FILE = 5;