Confusing scanner and generator logs when they're run for first time
While debugging a new deployment of sbws by a dirauth, it shows the following logs after 2 days running:
generator:
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) The percentage of the measured relays is less than the 60% of the relays in the network (6440).
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) The difference between the total consensus bandwidth (77422091000)and the total measured bandwidth (0) is 200%.
Oct 22 11:35:21 v3bwfile[39398]: <WARNING> (MainThread) It is more than 50%
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) Estimated time to measure the network: 168 hours.
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) Writing v3bw file to /var/lib/sbws/v3bw/20211022_113521.v3bw
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) sum_bw: 41608176
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) mean_bw: 6012.742196531792
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) median_bw: 1.0
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) num: 6920
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) max_bw: 200000
Oct 22 11:35:21 v3bwfile[39398]: <INFO> (MainThread) min_bw: 1
scanner:
Oct 22 11:52:16 sbws[21782]: Oct 22 11:52:16 heartbeat[21782]: <INFO> (MainThread) Run 49 main loops.
Oct 22 11:52:16 sbws[21782]: Oct 22 11:52:16 heartbeat[21782]: <INFO> (MainThread) Measured in total 6829 (99%) unique relays
in 2878.705402895083 minutes
Oct 22 11:52:16 sbws[21782]: Oct 22 11:52:16 heartbeat[21782]: <INFO> (MainThread) 45 relays still not measured.
Oct 22 11:52:16 sbws[21782]: Oct 22 11:52:16 heartbeat[21782]: <WARNING> (MainThread) There is no progress measuring new unique relays.
Part of the contradictory logs is due counting relays that are really measured vs relays to vote on and the fact that while that number is less than the 60% of the network, the generator doesn't vote on any.
It would also be useful to specify whether the bandwidth statistics are on the scaled values or not and the units.