sleinen / diskonade

When your disks are lemons...
GNU Affero General Public License v3.0
0 stars 3 forks source link

Script stumbles over low timestamps in log entries #9

Closed sleinen closed 8 years ago

sleinen commented 8 years ago

When the kernel logs include messages from soon after boot, the script terminates with

Malformed line:
Jan 30 15:42:53 zhdk0019 kernel: [    0.000000] Initializing cgroup subsys cpuset

This is because the regexp assumes that the timestamps in brackets aren't preceded by blanks, which turns out to be wrong.