Commit fc98f4ae authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Use interval type 'changed' for boolean value clients.

They don't change that often.
parent 96c5226a
......@@ -130,9 +130,15 @@ static void server_interval_check(struct trace *server)
}
if (!type && has_valclient) {
type = TRACE_INTERVAL_TYPE_INTERVAL;
interval.tv_sec = 0;
interval.tv_nsec = VALCLIENT_UPDATE_NSEC;
switch (server->type) {
case TRACE_VALUE_TYPE_FLOAT:
type = TRACE_INTERVAL_TYPE_INTERVAL;
interval.tv_sec = 0;
interval.tv_nsec = VALCLIENT_UPDATE_NSEC;
break;
default:
type = TRACE_INTERVAL_TYPE_CHANGED;
}
}
if (fullrate) {
......
Supports Markdown
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