]> git.itanic.dy.fi Git - log-plotter/blobdiff - data.c
data.c: Reset time stamp when starting new log
[log-plotter] / data.c
diff --git a/data.c b/data.c
index c577a6eafccebc52643d82e065dc63430f80c2ce..56a6b72faeca6cd445135421bbc5910851c32dd3 100644 (file)
--- a/data.c
+++ b/data.c
@@ -328,6 +328,8 @@ static int read_data(struct eventhandler_entry *h)
                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);