From 1da09c440719cdb30fe62187292f876325345b69 Mon Sep 17 00:00:00 2001 From: uid30989 Date: Fri, 5 Jul 2002 21:17:28 +0000 Subject: [PATCH] Bug fixes svn path=/trunk/boinc/; revision=165 --- tools/create_work.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/create_work.C b/tools/create_work.C index de6f547c96..3ebb07304d 100644 --- a/tools/create_work.C +++ b/tools/create_work.C @@ -97,13 +97,13 @@ int main(int argc, char** argv) { nresults = atoi(argv[i]); } else if (!strcmp(argv[i], "-rsc_fpops")) { i++; - wu.rsc_fpops = atof(argv[i+1]); + wu.rsc_fpops = atof(argv[i]); } else if (!strcmp(argv[i], "-rsc_iops")) { i++; - wu.rsc_iops = atof(argv[i+1]); + wu.rsc_iops = atof(argv[i]); } else if (!strcmp(argv[i], "-rsc_memory")) { i++; - wu.rsc_memory = atof(argv[i+1]); + wu.rsc_memory = atof(argv[i]); } else if (!strcmp(argv[i], "-rsc_disk")) { i++; wu.rsc_disk = atof(argv[i]); @@ -156,6 +156,7 @@ int main(int argc, char** argv) { FILE* fkey = fopen(keyfile, "r"); + rewind(fkey); if (!fkey) { printf("create_work: can't open key file (%s)\n", keyfile); exit(1);