fix: include startup plan in lookup timing · openclaw/openclaw@b72414c
shakkernerd
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -233,6 +233,9 @@ describe("loadPluginLookUpTable", () => {
|
233 | 233 | expect(table.startup.pluginIds).toEqual(["telegram"]); |
234 | 234 | expect(table.metrics.indexPluginCount).toBe(1); |
235 | 235 | expect(table.metrics.manifestPluginCount).toBe(1); |
| 236 | +expect(table.metrics.totalMs).toBe( |
| 237 | +metadataSnapshot.metrics.totalMs + table.metrics.startupPlanMs, |
| 238 | +); |
236 | 239 | }); |
237 | 240 | |
238 | 241 | it("rebuilds when a provided metadata snapshot has a stale plugin policy", async () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -110,6 +110,7 @@ export function loadPluginLookUpTable(params: LoadPluginLookUpTableParams): Plug
|
110 | 110 | metrics: { |
111 | 111 | ...metadataSnapshot.metrics, |
112 | 112 | startupPlanMs, |
| 113 | +totalMs: metadataSnapshot.metrics.totalMs + startupPlanMs, |
113 | 114 | startupPluginCount: pluginIds.length, |
114 | 115 | deferredChannelPluginCount: configuredDeferredChannelPluginIds.length, |
115 | 116 | }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。