From 4c4b248c68149089c8be2f830214bb2be693307e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 18 Nov 2024 11:27:26 +0100 Subject: [PATCH] lsirq,irqtop: cleanup threshold datatype Signed-off-by: Karel Zak --- sys-utils/irq-common.c | 4 ++-- sys-utils/irq-common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-utils/irq-common.c b/sys-utils/irq-common.c index 6ed124f10..f069d8a63 100644 --- a/sys-utils/irq-common.c +++ b/sys-utils/irq-common.c @@ -531,7 +531,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, struct irq_stat *prev, struct irq_stat **xstat, int softirq, - unsigned long threshold, + uintmax_t threshold, size_t setsize, cpu_set_t *cpuset) { @@ -570,7 +570,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, } for (i = 0; i < stat->nr_irq; i++) - if (result[i].total >= threshold) + if ((uintmax_t) result[i].total >= threshold) add_scols_line(out, &result[i], table); free(result); diff --git a/sys-utils/irq-common.h b/sys-utils/irq-common.h index cb68c58e5..a23a51a96 100644 --- a/sys-utils/irq-common.h +++ b/sys-utils/irq-common.h @@ -76,7 +76,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, struct irq_stat *prev, struct irq_stat **xstat, int softirq, - unsigned long threshold, + uintmax_t threshold, size_t setsize, cpu_set_t *cpuset); -- 2.47.3