summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d76d251)
raw | patch | inline | side by side (parent: d76d251)
author | Wilfried Goesgens <dothebart@citadel.org> | |
Sat, 7 Jun 2014 14:57:50 +0000 (16:57 +0200) | ||
committer | Wilfried Goesgens <dothebart@citadel.org> | |
Sat, 7 Jun 2014 14:57:50 +0000 (16:57 +0200) |
src/cpu.c | patch | blob | history |
diff --git a/src/cpu.c b/src/cpu.c
index 2e225fd1cfea5a869ea7cb23e84e88a0d0496172..79dc15070e5f551f6fd57395c666c11b9745a5f0 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
return -1;
}
- for (i = percents_cells; i < size; i++)
+ percents = tmp;
+
+ for (i = percents_cells ; i < size; i++)
memset(&percents[i], 0, sizeof(*percents));
- percents = tmp;
percents_cells = size;
return 0;
} /* cpu_states_grow */