Fix compiler warnings

refs #5287
This commit is contained in:
Gunnar Beutner 2017-05-29 09:13:19 +02:00
parent a5f46e13eb
commit 1fd2695e02
2 changed files with 3 additions and 5 deletions

View File

@ -136,8 +136,6 @@ void GraphiteWriter::Reconnect(void)
SetShouldConnect(true);
bool reconnect = false;
if (GetConnected())
return;

View File

@ -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;
}