fix to silo and bk bug
[unix-history] / usr / src / sys / vax / uba / tm.c
index cb9d441..2df067a 100644 (file)
@@ -1,4 +1,4 @@
-/*     tm.c    4.39    81/07/05        */
+/*     tm.c    4.41    81/08/30        */
 
 #include "te.h"
 #include "ts.h"
 
 #include "te.h"
 #include "ts.h"
@@ -428,7 +428,8 @@ loop:
                        sc->sc_timo = 5 * 60;
                } else {
                        um->um_tab.b_active = SCOM;
                        sc->sc_timo = 5 * 60;
                } else {
                        um->um_tab.b_active = SCOM;
-                       sc->sc_timo = imin(imax(10 * bp->b_repcnt, 60), 5*60);
+                       sc->sc_timo =
+                           imin(imax(10*(int)-bp->b_repcnt,60),5*60);
                }
                if (bp->b_command == TM_SFORW || bp->b_command == TM_SREV)
                        addr->tmbc = bp->b_repcnt;
                }
                if (bp->b_command == TM_SFORW || bp->b_command == TM_SREV)
                        addr->tmbc = bp->b_repcnt;