v
This commit is contained in:
parent
e6b738de58
commit
fd63466322
@ -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());
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user