Skip to content

Commit 3f28dd2

Browse files
committed
debug
1 parent bf8560b commit 3f28dd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/pid/stat_spec.cr

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ describe Hardware::PID::Stat do
2020
Hardware::PID.each do |pid|
2121
spawn do
2222
stat = pid.stat
23+
p stat
2324
sleep 4.seconds
2425
channel.send stat.cpu_usage!
26+
p stat
2527
rescue ex : Hardware::Error
2628
channel.send 0
2729
end
2830
pids_count += 1
2931
end
3032
max_cpu_usage = 0
31-
pids_count.times do
33+
pids_count.times do |i|
3234
cpu_usage = channel.receive
3335
cpu_usage.should be >= 0
3436
cpu_usage.should be <= 100

0 commit comments

Comments
 (0)