int manager_loop(Manager *m) {
int r;
- RATELIMIT_DEFINE(rl, 1*USEC_PER_SEC, 1000);
+ RATELIMIT_DEFINE(rl, 1*USEC_PER_SEC, 50000);
assert(m);
m->exit_code = MANAGER_RUNNING;
return l
-data = acquire_time_data()
-
if len(sys.argv) <= 1 or sys.argv[1] == 'blame':
+ data = acquire_time_data()
s = sorted(data, key = lambda i: i[2] - i[1], reverse = True)
for i in s:
if i[2] <= i[1]:
continue
- sys.stdout.write("%lums\t %s\n" % ((i[2] - i[1]) / 1000, i[0]))
+ sys.stdout.write("%6lums %s\n" % ((i[2] - i[1]) / 1000, i[0]))
+else:
+ sys.stderr.write("Unknown verb '%s'.\n" % sys.argv[1])