mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Measure CPU utilization in ServiceQueue
This commit is contained in:
@@ -147,7 +147,8 @@ public:
|
||||
|
||||
Json::Value rpcPrint (Json::Value const& args)
|
||||
{
|
||||
return m_logic.rpcPrint (args);
|
||||
int const cpuPercent (std::ceil (m_queue.getUtilizaton() * 100));
|
||||
return m_logic.rpcPrint (args, cpuPercent);
|
||||
}
|
||||
|
||||
Json::Value rpcRebuild (Json::Value const& args)
|
||||
|
||||
Reference in New Issue
Block a user