function61 / varasto

All your files in one simple, replicated, encrypted place - with built-in backups and configurable ransomware protection.
https://function61.com/varasto
Apache License 2.0
53 stars 5 forks source link

Report replication progress as a float #222

Open joonas-fi opened 1 year ago

joonas-fi commented 1 year ago

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 commented 1 year ago

Also while at it, replace 65536.0 with the appropriate constant