mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_pithy_print in time unit
This commit is contained in:
parent
60f9561d2d
commit
5df8f2f6c1
6 changed files with 22 additions and 13 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <srs_core.hpp>
|
||||
|
||||
#include <srs_app_reload.hpp>
|
||||
#include <srs_service_time.hpp>
|
||||
|
||||
/**
|
||||
* the stage info to calc the age.
|
||||
|
@ -35,16 +36,16 @@ class SrsStageInfo : public ISrsReloadHandler
|
|||
{
|
||||
public:
|
||||
int stage_id;
|
||||
int pithy_print_time_ms;
|
||||
srs_utime_t interval;
|
||||
int nb_clients;
|
||||
public:
|
||||
int64_t age;
|
||||
srs_utime_t age;
|
||||
public:
|
||||
SrsStageInfo(int _stage_id);
|
||||
virtual ~SrsStageInfo();
|
||||
virtual void update_print_time();
|
||||
public:
|
||||
virtual void elapse(int64_t diff);
|
||||
virtual void elapse(srs_utime_t diff);
|
||||
virtual bool can_print();
|
||||
public:
|
||||
virtual srs_error_t on_reload_pithy_print();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue