From 3956a3cfdf7b20519e1ca959081bc0f37ae7bb52 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 28 May 2003 18:29:42 +0000 Subject: [PATCH] no message svn path=/trunk/boinc/; revision=1251 --- client/client_types.C | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/client_types.C b/client/client_types.C index 24e9c04e9c..686360cc7d 100644 --- a/client/client_types.C +++ b/client/client_types.C @@ -606,10 +606,12 @@ int WORKUNIT::parse(FILE* in) { strcpy(env_vars, ""); app = NULL; project = NULL; - rsc_fpops = 0; - rsc_iops = 0; - rsc_memory = 0; - rsc_disk = 0; + // Default these to very large values (1 week on a 1 cobblestone machine) + // so we don't keep asking the server for more work + rsc_fpops = 1e9*SECONDS_PER_DAY*7; + rsc_iops = 1e9*SECONDS_PER_DAY*7; + rsc_memory = 4e9*SECONDS_PER_DAY*7; + rsc_disk = 1024*1024*1024; // 1 GB while (fgets(buf, 256, in)) { if (match_tag(buf, "")) return 0; else if (parse_str(buf, "", name, sizeof(name))) continue;