ssbc / ssb-first-aid-kit

A user-friendly app for diagnosing and fixing problems with your Scuttlebutt installation
GNU Affero General Public License v3.0
15 stars 3 forks source link

Figure out how the index progress numbers correlate #4

Closed Powersource closed 4 years ago

Powersource commented 4 years ago

I just tried deleting my links2 dir, ran sbot start and let it run for a little bit. This is a screenshot of it running

image

Surprising things:

  1. I would have expected current == links2. Is current some kind of average? Plain average of all the indexes is 730169488.375 (quadratic mean ~739477572) which is close but not it. However, if we can just assume that it's some average then that's probably good enough for our purposes.
  2. I would have expected start to be 0 or close to it.

Not gonna dwell on this too long since I don't need to but would be nice to know. Do you have any ideas @mixmix ?

dominictarr commented 4 years ago

code is here: https://github.com/ssbc/ssb-db/blob/80af97584f7700661a63fa6065885641911443ae/db.js#L21-L42

but it's only updated every 200 ms, but the numbers under since.plugins are exact at the time you call status. so it makes sense that the progress.indexes.current is slightly lower than the true average.

Powersource commented 4 years ago

Ah, thanks for the explanation :)

Powersource commented 4 years ago

Linking here from the code now