1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

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.
This commit is contained in:
hugo303 2024-10-25 12:15:02 +02:00 committed by Fredrik Hugosson
parent c18ac81f17
commit de668fe5e8

View File

@ -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])) {