summaryrefslogtreecommitdiff
path: root/procps/mpstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/mpstat.c')
-rw-r--r--procps/mpstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/mpstat.c b/procps/mpstat.c
index af3263d..6028903 100644
--- a/procps/mpstat.c
+++ b/procps/mpstat.c
@@ -526,7 +526,7 @@ static void get_irqs_from_stat(struct stats_irq *irq)
while (fgets(buf, sizeof(buf), fp)) {
//bb_error_msg("/proc/stat:'%s'", buf);
- if (strncmp(buf, "intr ", 5) == 0) {
+ if (is_prefixed_with(buf, "intr ")) {
/* Read total number of IRQs since system boot */
sscanf(buf + 5, "%"FMT_DATA"u", &irq->irq_nr);
}