Skip to content

Commit 6d91850

Browse files
authored
CPU regex should match more digits
1 parent 4caa29e commit 6d91850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vmstat/procfs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module ProcFS
1515
# Since Linux 2.6.24:
1616
# guest - which is the time spent running a virtual CPU for guest
1717
# operating systems under the control of the Linux kernel.
18-
CPU_DATA = /cpu(\d)#{'\s+(\d+)' * 4}/.freeze
18+
CPU_DATA = /cpu(\d+)#{'\s+(\d+)' * 4}/.freeze
1919

2020
# Grep the network stats from the procfs.
2121
# @example Format (from /proc/net/dev)

0 commit comments

Comments
 (0)