[OpenSIPS-Devel] [OpenSIPS/opensips] 5a56ab: core: Improve code of the "timer ticker" functions

Liviu Chircu liviu at opensips.org
Wed Jun 6 14:31:11 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5a56ab4b4ad90796ca4e0df6b178c58bcdce67b9
      https://github.com/OpenSIPS/opensips/commit/5a56ab4b4ad90796ca4e0df6b178c58bcdce67b9
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-06-06 (Wed, 06 Jun 2018)

  Changed paths:
    M timer.c

  Log Message:
  -----------
  core: Improve code of the "timer ticker" functions

    * fix confusing error log. The current code produced:

	WARNING:core:timer_ticker: timer task <presence-pclean> already
	scheduled for 5201330 ms (now 5653910 ms), it may overlap..

	    , while a more accurate error log would have been:

	WARNING:core:timer_ticker: timer task <presence-pclean> already
	scheduled 452580 ms ago (now 5653910 ms), delaying execution
              ^                             ^
		    |                             |
               must be a diff                skip? delay? push?

    * reduce code nesting level by 1



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list