Skip to content

Commit

Permalink
Merge pull request #9 from isalem/patch-1
Browse files Browse the repository at this point in the history
Replace ',' on '.' in cpu and mem. Fix #6
  • Loading branch information
MrRio committed Jun 10, 2014
2 parents e308024 + 4b532db commit ac2dba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sensors/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ var plugin = {
//console.log(currentLine);
var words = currentLine.split(" ");
if (typeof words[0] !== 'undefined' && typeof words[1] !== 'undefined' ) {
var cpu = words[0];
var mem = words[1];
var cpu = words[0].replace(',', '.');
var mem = words[1].replace(',', '.');
var offset = cpu.length + mem.length + 2;
var comm = currentLine.slice(offset);
// If we're on Mac then remove the path
Expand Down Expand Up @@ -113,4 +113,4 @@ var plugin = {
}
};

module.exports = exports = plugin;
module.exports = exports = plugin;

0 comments on commit ac2dba4

Please sign in to comment.