convert var to const

This commit is contained in:
Hari Krishna Reddy Juturu 2017-05-04 14:15:27 -07:00
parent 982c5064d8
commit 472dad1ffc
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# CPUUsage Object
* `percentCPUUsage` number - Percentage of CPU used since the last call to getCPUUsage.
* `percentCPUUsage` Number - Percentage of CPU used since the last call to getCPUUsage.
First call returns 0.
* `idleWakeupsPerSecond` number - The number of average idle cpu wakeups per second
* `idleWakeupsPerSecond` Number - The number of average idle cpu wakeups per second
since the last call to getCPUUsage. First call returns 0.

View file

@ -3,7 +3,7 @@ const assert = require('assert')
describe('process module', function () {
describe('process.getCPUUsage()', function () {
it('returns a cpu usage object', function () {
var cpuUsage = process.getCPUUsage()
const cpuUsage = process.getCPUUsage()
assert.equal(typeof cpuUsage.percentCPUUsage, 'number')
assert.equal(typeof cpuUsage.idleWakeupsPerSecond, 'number')
})
@ -14,7 +14,7 @@ describe('process module', function () {
if (process.platform !== 'win32') {
return
}
var ioCounters = process.getIOCounters()
const ioCounters = process.getIOCounters()
assert.equal(typeof ioCounters.readOperationCount, 'number')
assert.equal(typeof ioCounters.writeOperationCount, 'number')
assert.equal(typeof ioCounters.otherOperationCount, 'number')