From 15211f81b1cfa370c94bd8f5af154a1ec0b828f2 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 25 May 2023 15:48:23 +0330 Subject: New - CPU Speed logical Processors removed --- web/assets/js/util/common.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'web/assets') diff --git a/web/assets/js/util/common.js b/web/assets/js/util/common.js index ab642849..d35c5208 100644 --- a/web/assets/js/util/common.js +++ b/web/assets/js/util/common.js @@ -22,6 +22,19 @@ function sizeFormat(size) { } } +function cpuSpeedFormat(speed) { + const GHz = speed / 1000; + return GHz.toFixed(2) + " GHz"; +} + +function cpuCoreFormat(cores) { + if (cores === 1) { + return "1 Core"; + } else { + return cores + " Cores"; + } +} + function base64(str) { return Base64.encode(str); } -- cgit v1.2.3