mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-02 22:25:48 +00:00
Some of the APIs need to return a ratio. The ratio_holder struct is a helper class that counts the total and the sub totat, it implements the json::jsonable virtual class with a to_json method that return the ratio. The main usage of the sturct is with a map-reduce method. Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
4.9 KiB
4.9 KiB