src/parasol/para/para.c 1.108

1.108 2009/12/17 23:54:51 galt
fix minor timing bug
Index: src/parasol/para/para.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/parasol/para/para.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -b -B -U 4 -r1.107 -r1.108
--- src/parasol/para/para.c	4 Dec 2009 23:50:23 -0000	1.107
+++ src/parasol/para/para.c	17 Dec 2009 23:54:51 -0000	1.108
@@ -1018,17 +1018,18 @@
 long warnSeconds = warnTime*60;
 long duration;
 time_t now = time(NULL);
 
-long time = clock1000();
+long queryTime = clock1000();
 
 /* Get job list from paraHub. */
 struct dyString *dy = newDyString(1024);
 dyStringPrintf(dy, "pstat2 %s %s", getUser(), resultsName);
 struct slRef *lineList = hubMultilineQuery(dy->string), *lineEl;
 dyStringFree(&dy);
+now = time(NULL);  /* need to refresh this after we get the info */
 
-verbose(2, "pstat2 time: %.2f seconds\n", (clock1000() - time) / 1000.0);
+verbose(2, "pstat2 time: %.2f seconds\n", (clock1000() - queryTime) / 1000.0);
 
 long hashTime = clock1000();
 
 verbose(2, "submission hash size: %d\n", hash->size);
@@ -1130,9 +1131,9 @@
 
 slFreeList(&lineList);
 
 freeHash(&hash);
-verbose(2, "markQueuedJobs time (includes pstat2, hash, list): %.2f seconds\n", (clock1000() - time) / 1000.0);
+verbose(2, "markQueuedJobs time (includes pstat2, hash, list): %.2f seconds\n", (clock1000() - queryTime) / 1000.0);
 return queueSize;
 }
 
 struct hash *hashResults(char *fileName)