Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 237ace32 authored by Deucе's avatar Deucе 👌🏾

Populate system.uptime in JSDoor

This variable tracks the time that jsdoor was started.
parent 4eb9c633
Pipeline #1963 passed with stage
in 7 minutes and 29 seconds
......@@ -2657,11 +2657,9 @@ JSObject* js_CreateSystemObject(JSContext* cx, JSObject* parent
/***********************/
#ifndef JSDOOR
val=DOUBLE_TO_JSVAL((double)uptime);
if(!JS_SetProperty(cx, sysobj, "uptime", &val))
return(NULL);
#endif
#ifdef BUILD_JSDOCS
js_DescribeSyncObject(cx,sysobj,"Global system-related properties and methods",310);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment