fixed bug in CPU info parameters handler
authorVictor Kirhenshtein <victor@netxms.org>
Sat, 16 Apr 2016 13:22:04 +0000 (16:22 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Sat, 16 Apr 2016 13:22:04 +0000 (16:22 +0300)
src/agent/subagents/linux/cpu.cpp

index 13eb848..bc9a589 100644 (file)
@@ -481,7 +481,7 @@ static int ReadCpuInfo(CPU_INFO *info, int size)
    }
 
    fclose(f);
-   return count;
+   return count + 1;
 }
 
 /**