Преглед на файлове

Fix lasttime setting

pull/467/head
Rustam Safargalin преди 6 години
родител
ревизия
9f9b5a3807
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      src/lager_util.erl

+ 1
- 1
src/lager_util.erl Целия файл

@ -504,7 +504,7 @@ check_hwm(Shaper = #lager_shaper{hwm = undefined}) ->
{true, 0, Shaper};
check_hwm(Shaper = #lager_shaper{mps = Mps, hwm = Hwm}) when Mps < Hwm ->
%% haven't hit high water mark yet, just log it
{true, 0, Shaper#lager_shaper{mps=Mps+1}};
{true, 0, Shaper#lager_shaper{mps=Mps+1, lasttime = os:timestamp()}};
check_hwm(Shaper = #lager_shaper{lasttime = Last, dropped = Drop}) ->
%% are we still in the same second?
{M, S, _} = Now = os:timestamp(),

Зареждане…
Отказ
Запис