Commit c9d13bd5 authored by 潘栩锋's avatar 潘栩锋 🚴

上料 缩短流量写入数据库的周期

parent 15c94173
......@@ -394,7 +394,7 @@ namespace FLY.Weight.Server
void OnPoll()
{
if (stopwatch_1min.IsRunning && stopwatch_1min.Elapsed >= TimeSpan.FromMinutes(1))
if (stopwatch_1min.IsRunning && stopwatch_1min.Elapsed >= TimeSpan.FromSeconds(20))
{
//启动了1min 且到点了
if (lcFlows_1min.Count > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment