From f7d0ab6a8696eb6d19b275ee437d69826ca3cd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 24 Nov 2020 17:16:35 +0800 Subject: limit the num of diags in one file --- script/provider/diagnostic.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'script/provider') diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index 40849638..f93de54c 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -97,11 +97,17 @@ local function merge(a, b) local t = {} if a then for i = 1, #a do + if #t >= 100 then + break + end t[#t+1] = a[i] end end if b then for i = 1, #b do + if #t >= 100 then + break + end t[#t+1] = b[i] end end -- cgit v1.2.3