From fd63466322e8faf18695e72e8bf32e43b3ecd242 Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Fri, 28 Jun 2024 12:17:12 +0300 Subject: [PATCH] v --- AZ.Compute.Agent/Node.cs | 3 +++ AZ.Compute/Web/js/app.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/AZ.Compute.Agent/Node.cs b/AZ.Compute.Agent/Node.cs index 432ace1..fc4b69c 100644 --- a/AZ.Compute.Agent/Node.cs +++ b/AZ.Compute.Agent/Node.cs @@ -115,7 +115,10 @@ namespace AZ.Compute.Agent foreach (Job job in jobs) { if (!job.Finished) + { + job.Start = job.Start; job.Ram = (float)(job.Process.PeakWorkingSet64 / 1048576.0); + } } } catch (Exception ex) diff --git a/AZ.Compute/Web/js/app.js b/AZ.Compute/Web/js/app.js index 0b3851e..37e070a 100644 --- a/AZ.Compute/Web/js/app.js +++ b/AZ.Compute/Web/js/app.js @@ -51,6 +51,8 @@ async function addAgent() { const FORMAT_CONNECTION_STATUS = (x) => ["Offline", "Connecting...", "Online"][x]; const FORMAT_TIME = (x) => { + x = x / 1000; + var hours = Math.floor(x / 3600); var minutes = Math.floor((x - (hours * 3600)) / 60); var seconds = x - (hours * 3600) - (minutes * 60);