mirror of
https://github.com/systemd/systemd.git
synced 2025-01-02 01:18:14 +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:
parent
c18ac81f17
commit
de668fe5e8
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user