aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slowbaud.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/slowbaud.c b/slowbaud.c
index e0ad048..54bc8de 100644
--- a/slowbaud.c
+++ b/slowbaud.c
@@ -297,12 +297,13 @@ int main(int argc, char **argv) {
loss from overhead actually offsets the extra bit of speed.
*/
interval = (unsigned long)(1000000.0L / ((double)bps / 10.0L));
- if(debug) fprintf(stderr, "interval %ld us\n", interval);
#ifdef FRACTIONAL_USEC
frac_us_num = (double)FRAC_US_DENOM * ((1000000.0L / ((double)bps / 10.0L) - interval));
- fprintf(stderr, "%d %d\n", interval, frac_us_num);
- // srandom(NOW_USEC());
+ if(debug) fprintf(stderr, "interval %ld + %d/%d us\n", interval, frac_us_num, FRAC_US_DENOM);
+ // srandom(NOW_USEC()); // don't think we should do this
+#else
+ if(debug) fprintf(stderr, "interval %ld us\n", interval);
#endif
if(*argv && argv[0][0] == '-' && argv[0][1] == '-' && !argv[0][2]) {