From de668fe5e8a404bd0f48d815aba2953f1df8f9a3 Mon Sep 17 00:00:00 2001 From: hugo303 Date: Fri, 25 Oct 2024 12:15:02 +0200 Subject: [PATCH] Add the times in seconds for Activating and Active in the tooltip Print the times in the tooltip to remove the need to count and trying to follow the lines in the svg diagram in order to see at what times these events happen. --- src/analyze/analyze-plot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/analyze/analyze-plot.c b/src/analyze/analyze-plot.c index 78aeff1b62a..039b9ca8211 100644 --- a/src/analyze/analyze-plot.c +++ b/src/analyze/analyze-plot.c @@ -168,7 +168,9 @@ static void plot_tooltip(const UnitTimes *ut) { assert(ut->name); svg("%s:\n", ut->name); - + svg("Activating: %d.%.3d\n", (int)ut->activating / 1000000, (int)ut->activating % 1000000); + svg("Activated: %d.%.3d\n", (int)ut->activated / 1000000, (int)ut->activated % 1000000); + UnitDependency i; FOREACH_ARGUMENT(i, UNIT_AFTER, UNIT_BEFORE, UNIT_REQUIRES, UNIT_REQUISITE, UNIT_WANTS, UNIT_CONFLICTS, UNIT_UPHOLDS) if (!strv_isempty(ut->deps[i])) {