@@ -34,8 +34,8 @@ class os_base : public object_base {
34
34
static result_t loadavg (v8::Local<v8::Array>& retVal);
35
35
static result_t totalmem (int64_t & retVal);
36
36
static result_t freemem (int64_t & retVal);
37
- static result_t CPUInfo (v8::Local<v8::Array>& retVal);
38
- static result_t CPUs (int32_t & retVal);
37
+ static result_t cpus (v8::Local<v8::Array>& retVal);
38
+ static result_t cpuNumbers (int32_t & retVal);
39
39
static result_t tmpdir (exlib::string& retVal);
40
40
static result_t networkInterfaces (v8::Local<v8::Object>& retVal);
41
41
static result_t printerInfo (v8::Local<v8::Array>& retVal);
@@ -68,8 +68,8 @@ class os_base : public object_base {
68
68
static void s_loadavg (const v8::FunctionCallbackInfo<v8::Value>& args);
69
69
static void s_totalmem (const v8::FunctionCallbackInfo<v8::Value>& args);
70
70
static void s_freemem (const v8::FunctionCallbackInfo<v8::Value>& args);
71
- static void s_CPUInfo (const v8::FunctionCallbackInfo<v8::Value>& args);
72
- static void s_CPUs (const v8::FunctionCallbackInfo<v8::Value>& args);
71
+ static void s_cpus (const v8::FunctionCallbackInfo<v8::Value>& args);
72
+ static void s_cpuNumbers (const v8::FunctionCallbackInfo<v8::Value>& args);
73
73
static void s_tmpdir (const v8::FunctionCallbackInfo<v8::Value>& args);
74
74
static void s_networkInterfaces (const v8::FunctionCallbackInfo<v8::Value>& args);
75
75
static void s_printerInfo (const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -97,8 +97,8 @@ inline ClassInfo& os_base::class_info()
97
97
{ " loadavg" , s_loadavg, true },
98
98
{ " totalmem" , s_totalmem, true },
99
99
{ " freemem" , s_freemem, true },
100
- { " CPUInfo " , s_CPUInfo , true },
101
- { " CPUs " , s_CPUs , true },
100
+ { " cpus " , s_cpus , true },
101
+ { " cpuNumbers " , s_cpuNumbers , true },
102
102
{ " tmpdir" , s_tmpdir, true },
103
103
{ " networkInterfaces" , s_networkInterfaces, true },
104
104
{ " printerInfo" , s_printerInfo, true },
@@ -252,28 +252,28 @@ inline void os_base::s_freemem(const v8::FunctionCallbackInfo<v8::Value>& args)
252
252
METHOD_RETURN ();
253
253
}
254
254
255
- inline void os_base::s_CPUInfo (const v8::FunctionCallbackInfo<v8::Value>& args)
255
+ inline void os_base::s_cpus (const v8::FunctionCallbackInfo<v8::Value>& args)
256
256
{
257
257
v8::Local<v8::Array> vr;
258
258
259
259
METHOD_ENTER ();
260
260
261
261
METHOD_OVER (0 , 0 );
262
262
263
- hr = CPUInfo (vr);
263
+ hr = cpus (vr);
264
264
265
265
METHOD_RETURN ();
266
266
}
267
267
268
- inline void os_base::s_CPUs (const v8::FunctionCallbackInfo<v8::Value>& args)
268
+ inline void os_base::s_cpuNumbers (const v8::FunctionCallbackInfo<v8::Value>& args)
269
269
{
270
270
int32_t vr;
271
271
272
272
METHOD_ENTER ();
273
273
274
274
METHOD_OVER (0 , 0 );
275
275
276
- hr = CPUs (vr);
276
+ hr = cpuNumbers (vr);
277
277
278
278
METHOD_RETURN ();
279
279
}
0 commit comments