Re: [Powertop] Display all P-states in HTML-report
Sergey Senozhatsky <sergey.senozhatsky at gmail.com> Thu, 12 Jul 2012 03:57:21 +0300
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <[email protected]> |
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