mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 10:02:53 +00:00
usteer: rename uptime to executed in uchannel.uc state
The uptime value in the uchannel state contains the uptime at the time the script was last executed. This is a rather confusing name, and possibly this is what lead to WIFI-7613. Rename it to executed to avoid confusion in the future. Keep the original name in the usteerd node status, as it is unclear what impact this has, and could lead to breakage elsewhere. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
committed by
John Crispin
parent
19dbb1d5e3
commit
9de96deca8
@@ -56,7 +56,7 @@ function state_get() {
|
||||
function state_set(state) {
|
||||
let file = fs.open("/tmp/uchannel.json", "w");
|
||||
|
||||
state.uptime = uptime;
|
||||
state.executed = uptime;
|
||||
file.write(state);
|
||||
file.close();
|
||||
|
||||
@@ -64,7 +64,7 @@ function state_set(state) {
|
||||
node: "*",
|
||||
data: {
|
||||
status: state.status,
|
||||
uptime: state.uptime,
|
||||
uptime: state.executed,
|
||||
}
|
||||
});
|
||||
printf("entering %s state\n", state.status);
|
||||
|
||||
Reference in New Issue
Block a user