mirror of https://github.com/BOINC/boinc.git
Updated uc_slow application for lab test.
svn path=/trunk/boinc/; revision=173
This commit is contained in:
parent
7412bb8158
commit
064cbf57bc
|
@ -54,7 +54,7 @@ int do_checkpoint(MFILE& mf, int nchars) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int c, nchars = 0, retval;
|
int c, nchars = 0, retval, n;
|
||||||
char resolved_name[512];
|
char resolved_name[512];
|
||||||
MFILE out;
|
MFILE out;
|
||||||
FILE* state, *in;
|
FILE* state, *in;
|
||||||
|
@ -88,6 +88,12 @@ int main() {
|
||||||
c = toupper(c);
|
c = toupper(c);
|
||||||
out._putchar(c);
|
out._putchar(c);
|
||||||
nchars++;
|
nchars++;
|
||||||
|
|
||||||
|
n = 0;
|
||||||
|
while( n<100000 )
|
||||||
|
n++;
|
||||||
|
|
||||||
|
if( nchars % 2 == 0 )
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
if (time_to_checkpoint()) {
|
if (time_to_checkpoint()) {
|
||||||
|
|
Loading…
Reference in New Issue