On (07/11/12 12:40), Igor Zhbanov wrote:
+ unsigned int i, pstates_num;
+
+ for (i = 0, pstates_num = 0; i< all_cpus.size(); i++)
+ if (all_cpus[i]&& all_cpus[i]->pstates.size()> pstates_num)
+ pstates_num = all_cpus[i]->pstates.size();
OH, SILLY ME! My bad, sorry!
You initialize pstates_num within for loop (which is confusing).
Sorry for noise.
-ss