Remove redundant Worker method
The Worker::get_local_statistics was a duplicate of Worker::statistics.
This commit is contained in:
@ -604,16 +604,6 @@ public:
|
|||||||
return m_statistics;
|
return m_statistics;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return this worker's statistics.
|
|
||||||
*
|
|
||||||
* @return Local statistics for this worker.
|
|
||||||
*/
|
|
||||||
const STATISTICS& get_local_statistics() const
|
|
||||||
{
|
|
||||||
return m_statistics;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the count of descriptors.
|
* Return the count of descriptors.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1086,7 +1086,7 @@ public:
|
|||||||
RoutingWorker& rworker = static_cast<RoutingWorker&>(worker);
|
RoutingWorker& rworker = static_cast<RoutingWorker&>(worker);
|
||||||
|
|
||||||
json_t* pStats = json_object();
|
json_t* pStats = json_object();
|
||||||
const Worker::STATISTICS& s = rworker.get_local_statistics();
|
const Worker::STATISTICS& s = rworker.statistics();
|
||||||
json_object_set_new(pStats, "reads", json_integer(s.n_read));
|
json_object_set_new(pStats, "reads", json_integer(s.n_read));
|
||||||
json_object_set_new(pStats, "writes", json_integer(s.n_write));
|
json_object_set_new(pStats, "writes", json_integer(s.n_write));
|
||||||
json_object_set_new(pStats, "errors", json_integer(s.n_error));
|
json_object_set_new(pStats, "errors", json_integer(s.n_error));
|
||||||
|
|||||||
Reference in New Issue
Block a user