Skip to content

Commit

Permalink
cleaner processor loop
Browse files Browse the repository at this point in the history
  • Loading branch information
corecoding committed Aug 26, 2022
1 parent af46751 commit 2a468a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ var Sensors = GObject.registerClass({
this._last_processor['core'][cpu] = 0;

let stats = reverse_data[2].trim().split(' ').reverse();
for (let index in columns)
statistics[cpu][columns[index]] = parseInt(stats.pop());
for (let column of columns)
statistics[cpu][column] = parseInt(stats.pop());
}
}

Expand Down

0 comments on commit 2a468a1

Please sign in to comment.