Load factor adjustment and reporting tweaks.

This commit is contained in:
JoelKatz
2013-03-06 11:20:15 -08:00
parent d1d8f4b6b0
commit a0a0a27bbf
2 changed files with 3 additions and 3 deletions

View File

@@ -57,9 +57,9 @@ void LoadMonitor::addLatency(int latency)
void LoadMonitor::addCountAndLatency(const std::string& name, int counts, int latency)
{
if (latency > 1000)
if (latency > 500)
{
cLog(lsWARNING) << "Job: " << name << " ExecutionTime: " << latency;
cLog((latency > 1000) ? lsWARNING : lsINFO) << "Job: " << name << " ExecutionTime: " << latency;
}
if (latency == 1)
latency = 0;