From 1ea66357e92d145de8a0c0ac0f2a0a53a61222c9 Mon Sep 17 00:00:00 2001 From: Nikita Kalyazin Date: Sun, 7 Jul 2013 14:06:13 +0400 Subject: [PATCH] [FIX] add check for system cpu freq --- daemon/sys_stat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/sys_stat.c b/daemon/sys_stat.c index 8d23415..61f3dc0 100644 --- a/daemon/sys_stat.c +++ b/daemon/sys_stat.c @@ -2022,7 +2022,10 @@ int get_system_info(struct system_info_t *sys_info, int* pidarray, int pidcount) } // update cpu freq - update_system_cpu_frequency(event_num); + if (update_system_cpu_frequency(event_num) < 0) { + LOGE("Failed to update system cpu freq data\n"); + goto fail_exit; + } // memory data is changed slowly and variance is not remarkable // so memory data is less related with timestamp then cpu data -- 2.7.4