summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
83f2cf2)
Whenever we start logging a new charging session, start counting the
time from zero.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
return 0;
if (state_has_changed()) {
return 0;
if (state_has_changed()) {
+ dt->start_time = time(NULL);
+ data.timestamp = 0;
store_str_variable_value_to_array("status",
state_to_str(plotter_state.system_status), dt->cfg);
store_str_variable_value_to_array("status",
state_to_str(plotter_state.system_status), dt->cfg);