use the ruby2crystal tools do first conversion like below:
/c/crystal/ruby_crystal_codemod/exe/ruby_crystal_codemod memory--stat.cr /c/lkp-tests/tools/ruby2crystal.sh memory--stat.cr
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 1a39e4075..da7ac0d86 100644 --- a/stats/crystal/memory--stat.cr +++ b/stats/crystal/memory--stat.cr @@ -1,11 +1,11 @@ -#!/usr/bin/env ruby +#!/usr/bin/env crystal
# time: 123456 # cgroup: pmbench.1 # cache 0
def parse - cg = 'nocg' + cg = "nocg" $stdin.each_line do |line| case line when /^time:/