diff options
Diffstat (limited to 'cli/rt/30_os.js')
-rw-r--r-- | cli/rt/30_os.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/rt/30_os.js b/cli/rt/30_os.js index 892d3bf8b..ebc4e8916 100644 --- a/cli/rt/30_os.js +++ b/cli/rt/30_os.js @@ -19,6 +19,10 @@ return core.jsonOpSync("op_system_memory_info"); } + function systemCpuInfo() { + return core.jsonOpSync("op_system_cpu_info"); + } + function exit(code = 0) { core.jsonOpSync("op_exit", { code }); throw new Error("Code not reachable"); @@ -55,6 +59,7 @@ exit, osRelease, systemMemoryInfo, + systemCpuInfo, hostname, loadavg, }; |