common code: Add processing interval option to decrese CPU usage

This commit is contained in:
Andreas Eversberg
2016-06-18 19:33:08 +02:00
parent e10898c1e8
commit 4d52f955b3
7 changed files with 25 additions and 10 deletions

View File

@@ -286,7 +286,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Error setting SCHED_RR with prio %d\n", rt_prio);
}
main_loop(&quit, latency);
main_loop(&quit, latency, interval);
if (rt_prio > 0) {
struct sched_param schedp;