]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix power of 10 in cps counter
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 4 Jan 2010 21:32:10 +0000 (21:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 4 Jan 2010 21:32:10 +0000 (21:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16144 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_time.c

index d4a405888ccc7ed2cec5500e6d2a40bc7db36da6..b623abed25bd66ccd353717c6bed7dd22c08e1bc 100644 (file)
@@ -69,7 +69,7 @@ static int MATRIX = 1;
 
 static int STEP_MS = 10;
 static int STEP_MIC = 10000;
-static uint32_t TICK_PER_SEC = 100;
+static uint32_t TICK_PER_SEC = 1000;
 
 static int MS_PER_TICK = 10;
 
@@ -230,11 +230,11 @@ SWITCH_DECLARE(void) switch_time_set_matrix(switch_bool_t enable)
        if (MATRIX) {
                STEP_MS = 1;
                STEP_MIC = 1000;
-               TICK_PER_SEC = 1000;
+               TICK_PER_SEC = 10000;
        } else {
                STEP_MS = 10;
                STEP_MIC = 10000;
-               TICK_PER_SEC = 100;
+               TICK_PER_SEC = 1000;
        }
        switch_time_sync();
 }
@@ -379,7 +379,7 @@ static switch_status_t timer_init(switch_timer_t *timer)
                        MS_PER_TICK = timer->interval;
                        STEP_MS = 1;
                        STEP_MIC = 1000;
-                       TICK_PER_SEC = 1000;
+                       TICK_PER_SEC = 10000;
                        switch_time_sync();
                }