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:
Stijn Tintel
2022-04-13 17:37:51 +03:00
committed by John Crispin
parent 19dbb1d5e3
commit 9de96deca8

View File

@@ -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);