I had to reboot a few times today, and got bugged by the boot
countdown timer telling me it was going to boot in 1 seconds.

The change to src/sys/boot/common/boot.c is trivial, but I'm always
impressed when a program gets these details right.

-matt


*** boot.c.orig Thu May 20 01:11:00 1999
--- boot.c      Thu May 20 01:12:16 1999
***************
*** 203,209 ****
            break;
        }
        if (ntime != otime) {
!           printf("\rBooting [%s] in %d seconds... ", getbootfile(0), 
(int)(when - ntime));
            otime = ntime;
            cr = 1;
        }
--- 203,209 ----
            break;
        }
        if (ntime != otime) {
!           printf("\rBooting [%s] in %d second%s... ", getbootfile(0), 
(int)(when - ntime), (when-ntime)==1?"":"s");
            otime = ntime;
            cr = 1;
        }


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to