any KeyValue that is based on the last bandwidth file adds more code complexity, because it would mean to read and parse the last bandwidth file
i covered all the possible errors in measure_relay and also store any error in callback error, so now any measurement attempt could be calculated as the sum of all measurements for a given relay
i created additional bandwidth lines KeyValues to report the reasons why the relays fail to be measured
i covered all the possible errors in measure_relay and also store any error in callback error, so now any measurement attempt could be calculated as the sum of all measurements for a given relay
I thought it was not a good idea and actually it'd be better to don't have a callback error. Created new 2 commits explaining that.
I think this is okay, but PLEASE document all functions, classes, fields, errors, etc. Right now I can only check that the code looks at least sort of reasonable -- not that it does what you want it to do. Documentation would let me know what you want the code to do, so I can check that it does that.
i added one more commit (not fixup) explaining that the counters are not reset when the scanner stops.
I'm unable to decide whether is better like this or to reset them.
The measurement results are always accumulated.