I have ipfs peer deployed on k8 cluster and i want to check this peer incoming and outgoing traffic using this call
https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-stats-bw
i get the response as expected
{
"RateIn": "<float64>",
"RateOut": "<float64>",
"TotalIn": "<int64>",
"TotalOut": "<int64>"
}
but i am not sure how to get the units for these values
these values change dramatically for example
for example the RateIn could be β8.752270540957012β
and two seconds later the value becomes β1258.0550467236012β
which makes be believe they canβt be of the same unit
the first time could be B/S and the second time could be KiB/s
how can i make sure of that?