v
This commit is contained in:
parent
e6b738de58
commit
fd63466322
@ -115,7 +115,10 @@ namespace AZ.Compute.Agent
|
|||||||
foreach (Job job in jobs)
|
foreach (Job job in jobs)
|
||||||
{
|
{
|
||||||
if (!job.Finished)
|
if (!job.Finished)
|
||||||
|
{
|
||||||
|
job.Start = job.Start;
|
||||||
job.Ram = (float)(job.Process.PeakWorkingSet64 / 1048576.0);
|
job.Ram = (float)(job.Process.PeakWorkingSet64 / 1048576.0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -51,6 +51,8 @@ async function addAgent() {
|
|||||||
const FORMAT_CONNECTION_STATUS = (x) => ["Offline", "Connecting...", "Online"][x];
|
const FORMAT_CONNECTION_STATUS = (x) => ["Offline", "Connecting...", "Online"][x];
|
||||||
|
|
||||||
const FORMAT_TIME = (x) => {
|
const FORMAT_TIME = (x) => {
|
||||||
|
x = x / 1000;
|
||||||
|
|
||||||
var hours = Math.floor(x / 3600);
|
var hours = Math.floor(x / 3600);
|
||||||
var minutes = Math.floor((x - (hours * 3600)) / 60);
|
var minutes = Math.floor((x - (hours * 3600)) / 60);
|
||||||
var seconds = x - (hours * 3600) - (minutes * 60);
|
var seconds = x - (hours * 3600) - (minutes * 60);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user