From a45aa7425dbf0d3564ff2765ec39567e6faa6d37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Correnson?= <loic.correnson@cea.fr>
Date: Mon, 5 Feb 2024 12:03:16 +0100
Subject: [PATCH] [dome] fix microseconds format

---
 ivette/src/dome/misc/format.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivette/src/dome/misc/format.ts b/ivette/src/dome/misc/format.ts
index 5f45cdae32b..feee25f0517 100644
--- a/ivette/src/dome/misc/format.ts
+++ b/ivette/src/dome/misc/format.ts
@@ -36,7 +36,7 @@
    For instance, returns `'250ms'` for an input time of `.25`.
  */
 export function duration(time : number) : string {
-  if (time < 1.0e-3) return `${Math.round(time * 1.0e6)}ns`;
+  if (time < 1.0e-3) return `${Math.round(time * 1.0e6)}µs`;
   if (time < 1.0) return `${Math.round(time * 1.0e3)}ms`;
   if (time < 60) return `${Math.round(time)}s`;
   if (time < 3600) return `${Math.round(time / 60)}m`;
-- 
GitLab