anchor.diff:  -define(TARGET_TIME_ADJUST, 4). % number of consecutive incr/decr to
                                   % cause a target time adjustment
   -define(TARGET_TIME_ADJUST_FACTOR, 2.0).
  --define(ELAPSED_TIME_EPSILON, 0.1 / 3600.0). % 100 ms in hours
   
   %%%------------------------------------------------------------------------
   %%% External interface functions
  
positive.code:         {ok, #node{task_size = TaskSize}} ->
              TaskSizeInteger = if
                  is_float(TaskSize) ->
                      erlang:round(TaskSize);
                  is_integer(TaskSize) ->
                      TaskSize
              end,
  
negative.code: task_size_clamp(TaskSize, TaskSizeMin, TaskSizeMax) ->
      TaskSizeInteger = if
          is_float(TaskSize) ->
              cloudi_math:floor(TaskSize);
          is_integer(TaskSize) ->
              TaskSize
      end,
  