瀏覽代碼

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(),

Loading…
取消
儲存