File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,15 @@ static Handle<Value> GetCPUInfo(const Arguments& args) {
116
116
for (i = 0 ; i < count; i++) {
117
117
Local<Object> times_info = Object::New ();
118
118
times_info->Set (String::New (" user" ),
119
- Integer ::New (cpu_infos[i].cpu_times .user ));
119
+ Number ::New (cpu_infos[i].cpu_times .user ));
120
120
times_info->Set (String::New (" nice" ),
121
- Integer ::New (cpu_infos[i].cpu_times .nice ));
121
+ Number ::New (cpu_infos[i].cpu_times .nice ));
122
122
times_info->Set (String::New (" sys" ),
123
- Integer ::New (cpu_infos[i].cpu_times .sys ));
123
+ Number ::New (cpu_infos[i].cpu_times .sys ));
124
124
times_info->Set (String::New (" idle" ),
125
- Integer ::New (cpu_infos[i].cpu_times .idle ));
125
+ Number ::New (cpu_infos[i].cpu_times .idle ));
126
126
times_info->Set (String::New (" irq" ),
127
- Integer ::New (cpu_infos[i].cpu_times .irq ));
127
+ Number ::New (cpu_infos[i].cpu_times .irq ));
128
128
129
129
Local<Object> cpu_info = Object::New ();
130
130
cpu_info->Set (String::New (" model" ), String::New (cpu_infos[i].model ));
You can’t perform that action at this time.
0 commit comments