1
0
Fork 0
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:
winlin 2014-07-28 13:41:27 +08:00
parent 118ec29f8e
commit c16d3585a5

View file

@ -266,6 +266,8 @@ public:
// the time in ms when sample.
int64_t sample_time;
// 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;
// the total cpu time units
// @remark, zero for the previous total() is zero.