From e43244a6e9f62a96d47ee60933bf9b8a05f04b80 Mon Sep 17 00:00:00 2001 From: Ian Springer Date: Wed, 12 May 2010 13:46:10 -0400 Subject: [PATCH] (SIGAR-216) avoid ArrayIndexOutOfBoundsException in Sigar.getCpuPercList() when number of CPUs has decreased --- bindings/java/src/org/hyperic/sigar/Sigar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/Sigar.java b/bindings/java/src/org/hyperic/sigar/Sigar.java index f6117da5..4abfb5b3 100644 --- a/bindings/java/src/org/hyperic/sigar/Sigar.java +++ b/bindings/java/src/org/hyperic/sigar/Sigar.java @@ -373,7 +373,7 @@ public class Sigar implements SigarProxy { CpuPerc[] perc = new CpuPerc[curLen < oldLen ? curLen : oldLen]; - for (int i=0; i