Commit 14ad036f authored by Ivan Tyagov's avatar Ivan Tyagov

Improve report.

parent bd7df765
...@@ -42,7 +42,8 @@ for line in lines_list[1:]: ...@@ -42,7 +42,8 @@ for line in lines_list[1:]:
else: else:
delta = timestamp - last_channel0_timestamp delta = timestamp - last_channel0_timestamp
last_channel0_timestamp = timestamp last_channel0_timestamp = timestamp
# but always add delta # but always add delta if not 0
if delta > 0:
timestamp_channel0_delta_list.append(delta) timestamp_channel0_delta_list.append(delta)
if channel1 != last_channel1_value: if channel1 != last_channel1_value:
...@@ -53,7 +54,8 @@ for line in lines_list[1:]: ...@@ -53,7 +54,8 @@ for line in lines_list[1:]:
else: else:
delta = timestamp - last_channel1_timestamp delta = timestamp - last_channel1_timestamp
last_channel1_timestamp = timestamp last_channel1_timestamp = timestamp
# but always add delta # but always add delta if not 0
if delta > 0:
timestamp_channel1_delta_list.append(delta) timestamp_channel1_delta_list.append(delta)
# update for next cycle # update for next cycle
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment