Made rev 4586 safe against division by 0

master
Thomas Schmitt 11 years ago
parent f76a4ec837
commit 56183aaf71
  1. 3
      xorriso/text_io.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -2060,7 +2060,8 @@ int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done,
if(since > 0)
speed= count / since;
} 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) {

@ -1 +1 @@
#define Xorriso_timestamP "2012.01.23.104642"
#define Xorriso_timestamP "2012.01.25.153732"

Loading…
Cancel
Save