To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit 368e66b1 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

remove monotonic time from GPIO tracing file

parent adaac74d
......@@ -288,8 +288,12 @@ def worker_gpiotracing(queueitem=None, nodeid=None, resultfile_path=None, logque
infile = open(inputfilename, "r")
for line in infile:
(timestamp, ticks, pin, level) = line.strip().split(',', 3)
outfile.write("%s,%s,%d,%s,%s,%s\n" % (timestamp, ticks, obsid, nodeid, pin, level))
values = line.strip().split(',')
if len(values) > 3:
# monotonic time is included -> append at the end
outfile.write("%s,%d,%s,%s,%s,%s\n" % (values[0], obsid, nodeid, values[2], values[3], values[1]))
outfile.write("%s,%d,%s,%s,%s\n" % (values[0], obsid, nodeid, values[1], values[2]))
except ValueError:
logqueue.put_nowait((loggername, logging.ERROR, "Could not parse line '%s' in gpiotracing worker process." % line))
......@@ -1084,7 +1088,7 @@ def main(argv):
if service in ('errorlog', 'timesynclog'):
header = 'timestamp,observer_id,node_id,message\n'
elif service == 'gpiotracing':
header = 'timestamp,monotonic_time,observer_id,node_id,pin_name,value\n'
header = 'timestamp,observer_id,node_id,pin_name,value\n'
elif service == 'powerprofiling':
if ppFileFormat == 'rld':
continue # don't open a csv file
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