mirror of https://github.com/Icinga/icinga2.git
parent
a5f46e13eb
commit
1fd2695e02
|
@ -136,8 +136,6 @@ void GraphiteWriter::Reconnect(void)
|
|||
|
||||
SetShouldConnect(true);
|
||||
|
||||
bool reconnect = false;
|
||||
|
||||
if (GetConnected())
|
||||
return;
|
||||
|
||||
|
|
|
@ -347,9 +347,9 @@ int JsonRpcConnection::GetWorkQueueCount(void)
|
|||
|
||||
int JsonRpcConnection::GetWorkQueueLength(void)
|
||||
{
|
||||
size_t itemCount = 0;
|
||||
int itemCount = 0;
|
||||
|
||||
for (size_t i = 0; i < GetWorkQueueCount(); i++) {
|
||||
for (int i = 0; i < GetWorkQueueCount(); i++) {
|
||||
itemCount += l_JsonRpcConnectionWorkQueues[i].GetLength();
|
||||
}
|
||||
|
||||
|
@ -365,7 +365,7 @@ double JsonRpcConnection::GetWorkQueueRate(void)
|
|||
if (count == 0)
|
||||
return 0.0;
|
||||
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
rate += l_JsonRpcConnectionWorkQueues[i].GetTaskCount(60) / 60.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue