diff options
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r-- | runtime/js/30_os.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js index b09f25797..63e3748d3 100644 --- a/runtime/js/30_os.js +++ b/runtime/js/30_os.js @@ -25,10 +25,8 @@ function osRelease() { return ops.op_os_release(); } -function createOsUptime(opFn) { - return function osUptime() { - return opFn(); - }; +function osUptime() { + return ops.op_os_uptime(); } function systemMemoryInfo() { @@ -107,7 +105,6 @@ function execPath() { } export { - createOsUptime, env, execPath, exit, @@ -116,6 +113,7 @@ export { loadavg, networkInterfaces, osRelease, + osUptime, setExitHandler, systemMemoryInfo, uid, |