]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Minor typo. User is being passed into this fuction as a long pointer, not a long.
authorWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 21:29:59 +0000 (14:29 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 21:30:43 +0000 (14:30 -0700)
src/switch_profile.c

index b4171ef6f2d1fdfc4281953807d993fc2bb2256e..0f64a5b5f7c79cb3b5081bd7cacf967f22e76152 100644 (file)
@@ -137,7 +137,7 @@ static int read_cpu_stats(switch_profile_timer_t *p,
        /* test each of the known formats starting from the bigger one */
        elements = sscanf(cpustr, CPU_INFO_FORMAT_3, user, nice, system, idle, iowait, irq, softirq, steal, &guest);
        if (elements == CPU_ELEMENTS_3) {
-               user += guest; /* guest operating system's run in user space */
+               *user += guest; /* guest operating system's run in user space */
                return 0;
        }