mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Support write log to tencentcloud CLS. v5.0.44
This commit is contained in:
parent
3da0b57121
commit
95cd0e84eb
15 changed files with 1631 additions and 7 deletions
|
@ -99,6 +99,9 @@
|
|||
#define ERROR_SOCKET_ACCEPT 1081
|
||||
#define ERROR_THREAD_CREATE 1082
|
||||
#define ERROR_THREAD_FINISHED 1083
|
||||
#define ERROR_PB_NO_SPACE 1084
|
||||
#define ERROR_CLS_INVALID_CONFIG 1085
|
||||
#define ERROR_CLS_EXCEED_SIZE 1086
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// RTMP protocol error.
|
||||
|
|
|
@ -91,6 +91,11 @@ int SrsPps::r10s()
|
|||
return sample_10s_.rate;
|
||||
}
|
||||
|
||||
int SrsPps::r30s()
|
||||
{
|
||||
return sample_30s_.rate;
|
||||
}
|
||||
|
||||
SrsWallClock::SrsWallClock()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -53,6 +53,8 @@ public:
|
|||
void update(int64_t nn);
|
||||
// Get the 10s average stat.
|
||||
int r10s();
|
||||
// Get the 30s average stat.
|
||||
int r30s();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue