mirror of https://github.com/nodejs/node.git
Remove extra kstat_open
parent
752bbd6b42
commit
d953856d87
|
@ -124,7 +124,6 @@ int Platform::GetCPUInfo(Local<Array> *cpus) {
|
||||||
kstat_t *ksp;
|
kstat_t *ksp;
|
||||||
kstat_named_t *knp;
|
kstat_named_t *knp;
|
||||||
|
|
||||||
kc = kstat_open();
|
|
||||||
if ((kc = kstat_open()) == NULL)
|
if ((kc = kstat_open()) == NULL)
|
||||||
throw "could not open kstat";
|
throw "could not open kstat";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue