mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bandwidth kbps caculate bug (#2648)
This commit is contained in:
parent
9d54bcd114
commit
0093a54b34
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ srs_error_t SrsBandwidth::play_checking(SrsBandwidthSample* sample, SrsKbpsLimit
|
||||||
limit->send_limit();
|
limit->send_limit();
|
||||||
}
|
}
|
||||||
srs_update_system_time();
|
srs_update_system_time();
|
||||||
sample->calc_kbps((int)_rtmp->get_send_bytes(), srsu2msi(srs_get_system_time() - starttime));
|
sample->calc_kbps((int)_rtmp->get_send_bytes(), srs_get_system_time() - starttime);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -342,7 +342,7 @@ srs_error_t SrsBandwidth::publish_checking(SrsBandwidthSample* sample, SrsKbpsLi
|
||||||
limit->recv_limit();
|
limit->recv_limit();
|
||||||
}
|
}
|
||||||
srs_update_system_time();
|
srs_update_system_time();
|
||||||
sample->calc_kbps((int)_rtmp->get_recv_bytes(), srsu2msi(srs_get_system_time() - starttime));
|
sample->calc_kbps((int)_rtmp->get_recv_bytes(), srs_get_system_time() - starttime);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue