1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From 976ca4bf5d7eecbc0c3fb829da350412ac691068 Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Wed, 10 Jul 2019 11:25:54 +0100
Subject: [PATCH 1/5] comparison_report: fix diff.late_wakings calculation
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Currently the late_wakings calculation is always zero because
of a typo, fix this.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
comparison_report.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/comparison_report.c b/comparison_report.c
index e749c19..a52cb60 100644
--- a/comparison_report.c
+++ b/comparison_report.c
@@ -139,7 +139,7 @@ static void compare_cstate_single_state(struct cpuidle_cstate *c,
diff.duration = c->duration - b->duration;
diff.nrdata = c->nrdata - b->nrdata;
diff.early_wakings = c->early_wakings - b->early_wakings;
- diff.late_wakings = b->late_wakings - b->late_wakings;
+ diff.late_wakings = c->late_wakings - b->late_wakings;
printf("| %8s | ", c->name);
display_factored_time(c->min_time == DBL_MAX ? 0. :
--
2.20.1
|