[PATCH lkp-tests 3/3] stats/crystal/memory--stat.cr: fix some errors manually

12 Jan
2021
12 Jan
'21
10:14 a.m.
Signed-off-by: Lu Kaiyi <2392863668@qq.com> --- stats/crystal/memory--stat.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/crystal/memory--stat.cr b/stats/crystal/memory--stat.cr index da7ac0d86..f45ab5fb1 100644 --- a/stats/crystal/memory--stat.cr +++ b/stats/crystal/memory--stat.cr @@ -6,14 +6,14 @@ def parse cg = "nocg" - $stdin.each_line do |line| + STDIN.each_line do |line| case line when /^time:/ puts line when /^cgroup: (\S+)/ cg = $1 when /(\S+)\s*(\S+)/ - k, v, = line.split + k, v = line.split puts "#{cg}.#{k}: #{v}" end end -- 2.23.0
1506
Age (days ago)
1506
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lu Kaiyi