samurai icon indicating copy to clipboard operation
samurai copied to clipboard

NINJA_STATUS %o, %c

Open bartoszek opened this issue 5 years ago • 3 comments

Are there any limitations preventing the implementation of %c, %o rate info in NINJA_STATUS, or ware they drop intentionally.

bartoszek avatar Jun 08 '20 14:06 bartoszek

I don't think there is any limitation preventing their implementation. Maybe @E5ten can comment about why those were excluded.

Any patches are welcome.

michaelforney avatar Jun 21 '20 18:06 michaelforney

I just didn't know how to, so I left them out.

E5ten avatar Jun 21 '20 18:06 E5ten

How would %c be implemented in particular? Keeping track of the number of edges finished over the last second? That is a whole number rather than a float, but Ninja seems to use a float for %c.

We might also keep track of the time between the last two finished edges. Then 1/(time between last two, i.e. 0.2 sec) = rate (e.g. 5 edges/sec), or average over the times between the last 3, 4 finished etc. Can't fully understand what the ninja manual says.

ghost avatar Jul 25 '20 01:07 ghost