GetIOCounters is not implemented on mac

This commit is contained in:
Hari Krishna Reddy Juturu 2017-05-04 12:03:05 -07:00
parent 3c71f542a8
commit 8bc4d3f8bd
2 changed files with 4 additions and 1 deletions

View file

@ -123,7 +123,7 @@ Returns:
* `CPUUsage` [CPUUsage](structures/cpu-usage.md) * `CPUUsage` [CPUUsage](structures/cpu-usage.md)
### `process.getIOCounters()` ### `process.getIOCounters()` _Windows_ _Linux_
Returns: Returns:

View file

@ -11,6 +11,9 @@ describe('process module', function () {
describe('process.getIOCounters()', function () { describe('process.getIOCounters()', function () {
it('returns an io counters object', function () { it('returns an io counters object', function () {
if (process.platform !== 'win32') {
return;
}
var ioCounters = process.getIOCounters() var ioCounters = process.getIOCounters()
assert.equal(typeof ioCounters.readOperationCount, 'number') assert.equal(typeof ioCounters.readOperationCount, 'number')
assert.equal(typeof ioCounters.writeOperationCount, 'number') assert.equal(typeof ioCounters.writeOperationCount, 'number')