This commit is contained in:
Ahmed Zamil 2024-06-28 12:17:12 +03:00
parent e6b738de58
commit fd63466322
2 changed files with 5 additions and 0 deletions

View File

@ -115,9 +115,12 @@ 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)
{
Console.WriteLine(ex.ToString());

View File

@ -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);