From c16d3585a53bbe4aaae02dd894098d388404dcd1 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 28 Jul 2014 13:41:27 +0800 Subject: [PATCH] refine utility of cpu, add comment for cpu percent --- trunk/src/app/srs_app_utility.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/app/srs_app_utility.hpp b/trunk/src/app/srs_app_utility.hpp index 698995a76..227dc94d9 100644 --- a/trunk/src/app/srs_app_utility.hpp +++ b/trunk/src/app/srs_app_utility.hpp @@ -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.