Skip to content

Commit

Permalink
remove decimals of temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 4, 2019
1 parent 673f2bb commit ebe87e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async function getData() {
await delay(5000);

let result = {};
let cpuTemperature = await si.cpuTemperature();
let cpuTemperature = Math.round(await si.cpuTemperature());
result.cpuTemperature = cpuTemperature.main;

let mem = await si.mem();
Expand Down

0 comments on commit ebe87e1

Please sign in to comment.