mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#9191 - Avoid div 0 error
This commit is contained in:
parent
0debad5830
commit
0668877847
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ lutil_meter_update (
|
|||
|
||||
frac = ((double)position) / ((double) meter->goal_value);
|
||||
elapsed = now - meter->start_time;
|
||||
if (frac <= 0.0) return 0;
|
||||
if (frac <= 0.0 || elapsed == 0) return 0;
|
||||
if (frac >= 1.0) {
|
||||
rc = meter->display->display_update(
|
||||
&meter->display_data,
|
||||
|
|
|
|||
Loading…
Reference in a new issue