analyze: Fix leading zero bug in decimals for tool tip in svg plot

Change-Id: If572cc593aa730de87510982613791d94d8f26b5
(cherry picked from commit a446e8ff2c)
(cherry picked from commit b07c5a0639)
(cherry picked from commit 633c9abafa)
This commit is contained in:
Fredrik Hugosson authored and Luca Boccassi committed 2026-10-17 14:45:49 +01:00
1 parent 458964aabe
commit 1dacebfcd9
1 file changed
+2 -2
+2 -2
View File
@@ -175,8 +175,8 @@ static void plot_tooltip(const UnitTimes *ut) {
assert(ut->name);
svg("%s:\n", ut->name);
svg("Activating: %"PRI_USEC".%.3"PRI_USEC"\n", ut->activating / USEC_PER_SEC, ut->activating % USEC_PER_SEC);
svg("Activated: %"PRI_USEC".%.3"PRI_USEC"\n", ut->activated / USEC_PER_SEC, ut->activated % USEC_PER_SEC);
svg("Activating: %"PRI_USEC".%.6"PRI_USEC"\n", ut->activating / USEC_PER_SEC, ut->activating % USEC_PER_SEC);
svg("Activated: %"PRI_USEC".%.6"PRI_USEC"\n", ut->activated / USEC_PER_SEC, ut->activated % USEC_PER_SEC);
UnitDependency i;
FOREACH_ARGUMENT(i, UNIT_AFTER, UNIT_BEFORE, UNIT_REQUIRES, UNIT_REQUISITE, UNIT_WANTS, UNIT_CONFLICTS, UNIT_UPHOLDS)