Skip to content

Commit 2f927ea

Browse files
committed
fix: timestamps with millis not properly formatted in dashboard ui
1 parent 1b448e1 commit 2f927ea

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-codeflare-dashboard/src/controller/dashboard/status

1 file changed

+1
-1
lines changed

Diff for: plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default class Live {
134134
/** Add `line` to our circular buffer `this.lines` */
135135
private pushLine(line: string, metric: WorkerState, timestamp: number) {
136136
const key = line
137-
.replace(/\s*(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ)\s*/, "{timestamp}")
137+
.replace(/\s*(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z)\s*/, "{timestamp}")
138138
.replace(/pod\/torchx-\S+ /, "") // worker name in torchx
139139
.replace(/pod\/ray-(head|worker)-\S+ /, "") // worker name in ray
140140
.replace(/\* /, "") // wildcard worker name (codeflare)

0 commit comments

Comments
 (0)