From 792a6f944f8896d696c784b21035709b08e9c55d Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 28 Jul 2014 13:51:54 +0800 Subject: [PATCH] refine utility of cpu, add comment for cpu percent --- trunk/src/app/srs_app_utility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/app/srs_app_utility.cpp b/trunk/src/app/srs_app_utility.cpp index d5bdec890..9abfb78a2 100644 --- a/trunk/src/app/srs_app_utility.cpp +++ b/trunk/src/app/srs_app_utility.cpp @@ -525,6 +525,7 @@ void srs_update_disk_stat() && o.ticks < r.ticks ) { // @see: print_partition_stats() of iostat.c + // TODO: FIXME: the USER_HZ assert to 100, so the total_delta ticks *10 is ms. double delta_ms = r.cpu.total_delta * 10 / cpuinfo->nb_processors; unsigned int ticks = r.ticks - o.ticks;