Skip to content

Commit

Permalink
Fixing cpu/memory measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Jul 14, 2020
1 parent 7e9168e commit f384da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Crank.Agent/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,6 @@ private static async Task ProcessJobs(string hostname, string dockerHostname, Ca
Value = rawCpu
});

oldCPUTime = newCPUTime;

if (job.CollectSwapMemory && OperatingSystem == OperatingSystem.Linux)
{
try
Expand All @@ -921,6 +919,8 @@ private static async Task ProcessJobs(string hostname, string dockerHostname, Ca
}
}
}

oldCPUTime = newCPUTime;
}
}
}
Expand Down

0 comments on commit f384da9

Please sign in to comment.