winlin

refine utility of cpu, add comment for cpu percent

@@ -525,6 +525,7 @@ void srs_update_disk_stat() @@ -525,6 +525,7 @@ void srs_update_disk_stat()
525 && o.ticks < r.ticks 525 && o.ticks < r.ticks
526 ) { 526 ) {
527 // @see: print_partition_stats() of iostat.c 527 // @see: print_partition_stats() of iostat.c
  528 + // TODO: FIXME: the USER_HZ assert to 100, so the total_delta ticks *10 is ms.
528 double delta_ms = r.cpu.total_delta * 10 / cpuinfo->nb_processors; 529 double delta_ms = r.cpu.total_delta * 10 / cpuinfo->nb_processors;
529 unsigned int ticks = r.ticks - o.ticks; 530 unsigned int ticks = r.ticks - o.ticks;
530 531