pub fn is_due(
policy: RefreshPolicy,
now_secs: u64,
last_run: Option<u64>,
) -> boolExpand description
Decide whether a single measure is due to refresh.
Manual— never scheduled (onlyrefresh/refresh-allrun it).OnLoad— due once, when it has never run in this daemon session (last_runisNone).Interval { secs }— due when it has never run, or whennow_secsis at leastsecspastlast_run.