Browse code

dispatcher: fix an error in initialisation /

training of the latency estimator

Julien Chavanton authored on 28/09/2020 19:57:25
Showing 1 changed files
... ...
@@ -2598,6 +2598,8 @@ void latency_stats_init(ds_latency_stats_t *latency_stats, int latency, int coun
2598 2598
 }
2599 2599
 
2600 2600
 static inline void latency_stats_update(ds_latency_stats_t *latency_stats, int latency) {
2601
+	int training_count = 10000;
2602
+
2601 2603
 	/* after 2^21 ~24 days at 1s interval, the average becomes a weighted average */
2602 2604
 	if (latency_stats->count < 2097152) {
2603 2605
 		latency_stats->count++;