From c30051b0a380b6cbab284dd930589eaf93bcd795 Mon Sep 17 00:00:00 2001 From: markgrebe Date: Mon, 21 Feb 2005 19:32:07 +0000 Subject: [PATCH] Fixed Atari_time delay loop time calculator, which was causing a hang when a very large time delay would be sent as a parameter to usleep git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@367 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/macosx/mainSDL.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/macosx/mainSDL.cxx b/stella/src/macosx/mainSDL.cxx index e659754f3..5df9d471d 100644 --- a/stella/src/macosx/mainSDL.cxx +++ b/stella/src/macosx/mainSDL.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: mainSDL.cxx,v 1.8 2005-02-18 05:31:47 markgrebe Exp $ +// $Id: mainSDL.cxx,v 1.9 2005-02-21 19:32:07 markgrebe Exp $ //============================================================================ #include @@ -1209,7 +1209,7 @@ static double Atari_time(void) struct timeval tp; gettimeofday(&tp, NULL); - return 1000000 * tp.tv_sec + 1e-6 * tp.tv_usec; + return tp.tv_sec + 1e-6 * tp.tv_usec; }