From 93b5ca86d5a5af349ed34b007c44c7a20ce9150a Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Date: Sun, 22 May 2011 17:26:00 +0200 Subject: [PATCH] pybootchartgui: support hp smart arrays block device This is a port of Anders Noorgard and Brian Murray patch at lp #723663 I've changed the patch to match any device and not just the first one. Also i'd like to note that we were not crashing :) --- pybootchartgui/parsing.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pybootchartgui/parsing.py b/pybootchartgui/parsing.py index 56648d5..48a5c23 100644 --- a/pybootchartgui/parsing.py +++ b/pybootchartgui/parsing.py @@ -402,7 +402,7 @@ def _parse_proc_disk_stat_log(file, numCpu): not sda1, sda2 etc. The format of relevant lines should be: {major minor name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq} """ - disk_regex_re = re.compile ('^([hsv]d.|mtdblock\d|mmcblk\d)$') + disk_regex_re = re.compile ('^([hsv]d.|mtdblock\d|mmcblk\d|cciss/c\d+d\d+)$') # this gets called an awful lot. def is_relevant_line(linetokens):