GetIOCounters is not implemented on mac
This commit is contained in:
parent
3c71f542a8
commit
8bc4d3f8bd
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue