Skip to content

Commit

Permalink
irqtop: quickfix for table mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
aabc committed Aug 29, 2014
1 parent 2b2dde8 commit 9060072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irqtop
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def read_table(tag, file)
@cpus = []
lines = IO.readlines(file)
@cpus = lines[0].scan(/CPU\d+/)
@icpu = @cpus if tag == 'i'
@icpus = @cpus if tag == 'i'
lines[2..-1].each do |li|
irq, stat, desc = li.match(/^\s*(\S+):((?:\s+\d+)+)(.*)$/).captures
stat = stat.scan(/\d+/)
Expand Down

0 comments on commit 9060072

Please sign in to comment.