Fixed bytes per second to mbits conversion to correct formula. It should improve calculation accurancy

Thanks to Denis Troshanovich for noticing it!
This commit is contained in:
Pavel Odintsov 2019-11-16 13:30:45 +00:00 committed by GitHub
parent 50d9706b0f
commit 2e587dd678
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -523,7 +523,7 @@ std::string convert_timeval_to_date(struct timeval tv) {
uint64_t convert_speed_to_mbps(uint64_t speed_in_bps) {
return uint64_t((double)speed_in_bps / 1024 / 1024 * 8);
return uint64_t((double)speed_in_bps / 1000 / 1000 * 8);
}
std::string get_protocol_name_by_number(unsigned int proto_number) {