diff --git a/sched/irq/irq_procfs.c b/sched/irq/irq_procfs.c index 3014073c55..ead5965aa0 100644 --- a/sched/irq/irq_procfs.c +++ b/sched/irq/irq_procfs.c @@ -206,6 +206,7 @@ static int irq_callback(int irq, FAR struct irq_info_s *info, * rate = * TICKS_PER_SEC / elapsed */ + elapsed = elapsed ? elapsed : 1; intpart = (unsigned int)((copy.count * TICK_PER_SEC) / elapsed); if (intpart >= 10000) {