More accurate field names.

This commit is contained in:
JoelKatz
2013-03-03 16:27:11 -08:00
parent f0c029ef0d
commit bc99fdc45f
2 changed files with 5 additions and 3 deletions

View File

@@ -176,9 +176,9 @@ Json::Value JobQueue::getJson(int)
if (count != 0)
pri["per_second"] = static_cast<int>(count);
if (latencyPeak != 0)
pri["peak_latency"] = static_cast<int>(latencyPeak);
pri["peak_time"] = static_cast<int>(latencyPeak);
if (latencyAvg != 0)
pri["avg_latency"] = static_cast<int>(latencyAvg);
pri["avg_time"] = static_cast<int>(latencyAvg);
priorities.append(pri);
}
}

View File

@@ -58,7 +58,9 @@ void LoadMonitor::addLatency(int latency)
void LoadMonitor::addCountAndLatency(const std::string& name, int counts, int latency)
{
if (latency > 1000)
cLog(lsWARNING) << "Job: " << name << " Latency: " << latency;
{
cLog(lsWARNING) << "Job: " << name << " ExecutionTime: " << latency;
}
if (latency == 1)
latency = 0;
boost::mutex::scoped_lock sl(mLock);