Skip to content

Commit

Permalink
common/state.c: in state_delinfo_olderthan() do upsdebugx(6,...) that…
Browse files Browse the repository at this point in the history
… we are deleting an entry because it is too old [networkupstools#2007]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 4, 2023
1 parent 29724e1 commit d52971e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ int state_delinfo_olderthan(st_tree_t **nptr, const char *var, const st_tree_tim
upsdebugx(6, "%s: not deleting recently updated variable [%s]", __func__, var);
return 0;
}
upsdebugx(6, "%s: deleting variable [%s] last updated too long ago", __func__, var);

/* whatever is on the left, hang it off current right */
st_tree_node_add(&node->right, node->left);
Expand Down

0 comments on commit d52971e

Please sign in to comment.