varasto icon indicating copy to clipboard operation
varasto copied to clipboard

Report replication progress as a float

Open joonas-fi opened this issue 1 year ago • 1 comments

https://github.com/function61/varasto/blob/ea0be71a1026a720be1a1c265ff0d18c1838907d/pkg/stoserver/storeplication/replicationcontroller.go#L143

Truncating to integer is needlessly coarse, resulting in steps in the metrics:

image

The larger backlog of transfers one has, the more this issue is amplified.

joonas-fi avatar Apr 13 '23 09:04 joonas-fi

Also while at it, replace 65536.0 with the appropriate constant

joonas-fi avatar Apr 13 '23 09:04 joonas-fi