1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the kbps of server.

This commit is contained in:
winlin 2015-03-08 12:55:40 +08:00
parent fbbe46d272
commit 8bf60895a9
5 changed files with 27 additions and 34 deletions

View file

@ -278,12 +278,9 @@ private:
*/
virtual void close_listeners(SrsListenerType type);
/**
* resample the server kbps.
* if conn is NULL, resample all connections delta, then calc the total kbps.
* @param conn, the connection to do resample the kbps. NULL to resample all connections.
* @param do_resample, whether resample the server kbps. always false when sample a connection.
* resample the server kbs.
*/
virtual void resample_kbps(SrsConnection* conn, bool do_resample = true);
virtual void resample_kbps();
// internal only
public:
/**