anchor.diff:          {ok, #node{task_size = TaskSize}} ->
               TaskSizeInteger = if
                   is_float(TaskSize) ->
  -                    erlang:round(TaskSize);
  +                    cloudi_math:floor(TaskSize);
                   is_integer(TaskSize) ->
                       TaskSize
               end,
  
positive.code:         error ->
              #node{task_size = TaskSizeInitial}
      end,
      TaskSizeSmoothed = task_size_smoothed(TaskSize, OldTaskSize, TargetTime0,
                                            ElapsedTime + ?ELAPSED_TIME_EPSILON),
      NewTaskSize = task_size_clamp(TaskSizeSmoothed, TaskSizeMin, TaskSizeMax),
      {NextTargetTimeIncr, TargetTime1} = if
          NewTaskSize < TaskSizeMin + 0.5 ->
  
negative.code: -define(TARGET_TIME_ADJUST, 4). % number of consecutive incr/decr to
                                  % cause a target time adjustment
  -define(TARGET_TIME_ADJUST_FACTOR, 2.0).
  
  %%%------------------------------------------------------------------------
  %%% External interface functions
  