mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine utility of cpu, add comment for cpu percent
This commit is contained in:
parent
118ec29f8e
commit
c16d3585a5
1 changed files with 2 additions and 0 deletions
|
@ -266,6 +266,8 @@ public:
|
||||||
// the time in ms when sample.
|
// the time in ms when sample.
|
||||||
int64_t sample_time;
|
int64_t sample_time;
|
||||||
// the percent of usage. 0.153 is 15.3%.
|
// the percent of usage. 0.153 is 15.3%.
|
||||||
|
// the percent is in [0, 1], where 1 is 100%.
|
||||||
|
// for multiple core cpu, max also is 100%.
|
||||||
float percent;
|
float percent;
|
||||||
// the total cpu time units
|
// the total cpu time units
|
||||||
// @remark, zero for the previous total() is zero.
|
// @remark, zero for the previous total() is zero.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue