From ed6e74340c02911bd9a3dad2e551ec48e870ad0a Mon Sep 17 00:00:00 2001 From: cebix <> Date: Thu, 2 Nov 2000 19:41:52 +0000 Subject: [PATCH] - fixed Delay_usec() on IRIX - xpram_func() calls Delay_usec() with a time of <1 second --- BasiliskII/src/Unix/main_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BasiliskII/src/Unix/main_unix.cpp b/BasiliskII/src/Unix/main_unix.cpp index 49263ca2..c6765fe2 100644 --- a/BasiliskII/src/Unix/main_unix.cpp +++ b/BasiliskII/src/Unix/main_unix.cpp @@ -773,7 +773,7 @@ static void *xpram_func(void *arg) { while (!xpram_thread_cancel) { for (int i=0; i<60 && !xpram_thread_cancel; i++) - Delay_usec(1000000); + Delay_usec(999999); xpram_watchdog(); } return NULL; @@ -880,7 +880,7 @@ void Delay_usec(uint32 usec) #if defined(linux) tv.tv_sec = 0; tv.tv_usec = usec; -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(sgi) elapsed.tv_sec = 0; elapsed.tv_nsec = usec * 1000; #else