From 064cbf57bcb7f75a6dcc47ca0464a73fafc4926a Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 10 Jul 2002 22:32:36 +0000 Subject: [PATCH] Updated uc_slow application for lab test. svn path=/trunk/boinc/; revision=173 --- apps/uc_slow.C | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/uc_slow.C b/apps/uc_slow.C index 398141997e..6a916c8e71 100644 --- a/apps/uc_slow.C +++ b/apps/uc_slow.C @@ -54,7 +54,7 @@ int do_checkpoint(MFILE& mf, int nchars) { } int main() { - int c, nchars = 0, retval; + int c, nchars = 0, retval, n; char resolved_name[512]; MFILE out; FILE* state, *in; @@ -88,7 +88,13 @@ int main() { c = toupper(c); out._putchar(c); nchars++; - sleep(1); + + n = 0; + while( n<100000 ) + n++; + + if( nchars % 2 == 0 ) + sleep(1); if (time_to_checkpoint()) { retval = do_checkpoint(out, nchars);