aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2024-11-18 11:27:26 +0100
committerKarel Zak <kzak@redhat.com>2024-11-18 11:27:26 +0100
commit4c4b248c68149089c8be2f830214bb2be693307e (patch)
tree0e1509de455513d02cf80e3c06795a9bb9170823
parent0fc13a60f9b70c7516a9a04d404649f3ea0df914 (diff)
downloadutil-linux-4c4b248c68149089c8be2f830214bb2be693307e.tar.gz
lsirq,irqtop: cleanup threshold datatype
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--sys-utils/irq-common.c4
-rw-r--r--sys-utils/irq-common.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/irq-common.c b/sys-utils/irq-common.c
index 6ed124f101..f069d8a631 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 cb68c58e52..a23a51a960 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);