From e0eafdac5d50bf497811936acd618fde4d13e714 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 11 Aug 2022 11:27:44 +0200 Subject: [PATCH] more explicit check --- procio.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procio.cr b/procio.cr index d958bb3..a1d5fe3 100644 --- a/procio.cr +++ b/procio.cr @@ -22,7 +22,7 @@ Dir.entries(dir).each do |entry| end result.each do |comm, (r, w)| - if r + w > 0 + if r > 0 && w > 0 puts %(procio,comm="#{comm}" read_bytes=#{r},write_bytes=#{w} #{time}) end end