Skip to content
Snippets Groups Projects
Commit a9114d22 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

stat: only print statistics when something happened


This change monitors the update_count of wr_servo, and only prints
a statistics line when something happens.

This means we won't have long "TRACK_PHASE" listings when the master
is dead. Moreover, we see changes when they happen, not at a random
time during the next second.

The bad side of the thing is that if nothing happens in the wr servo,
nothing is ever printed. But see next commit.

Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent 67c9e10f
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