Made rev 4586 safe against division by 0
This commit is contained in:
parent
f76a4ec837
commit
56183aaf71
@ -2060,7 +2060,8 @@ int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done,
|
|||||||
if(since > 0)
|
if(since > 0)
|
||||||
speed= count / since;
|
speed= count / since;
|
||||||
} else if(count >= xorriso->pacifier_prev_count) {
|
} else if(count >= xorriso->pacifier_prev_count) {
|
||||||
speed= (count - xorriso->pacifier_prev_count) / (interval_time);
|
if(interval_time > 0)
|
||||||
|
speed= (count - xorriso->pacifier_prev_count) / interval_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(speed >= 0.0) {
|
if(speed >= 0.0) {
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2012.01.23.104642"
|
#define Xorriso_timestamP "2012.01.25.153732"
|
||||||
|
Loading…
Reference in New Issue
Block a user