On Fri, Apr 09, 2021 at 05:42:29PM +0800, Lu Weitao wrote:
[Why] 2021-04-09 17:19:16 +0800 WARN -- whitespace in stats name: Installing 2021-04-09 17:19:16 +0800 WARN -- check .//openeuler_docker
Signed-off-by: Lu Weitao luweitaobe@163.com
lib/dump_stat.rb | 1 + 1 file changed, 1 insertion(+)
diff --git a/lib/dump_stat.rb b/lib/dump_stat.rb index de0168e..383ff09 100644 --- a/lib/dump_stat.rb +++ b/lib/dump_stat.rb @@ -38,6 +38,7 @@ module DumpStat
stat_result.each do |key, value| key = key.resolve_invalid_bytes
key = key.chomp.strip
looks chomp is unnecessary?
-------- Thanks Yu Chuan
next if key[0] == '#' next if value.empty? || value == 0 next if monitor =~ /^(dmesg|kmsg)$/ && key =~ /^(message|pattern):/
-- 2.23.0