trace-projections: gzip logs by default
authorPhil Miller <mille121@illinois.edu>
Tue, 17 Apr 2012 20:32:02 +0000 (15:32 -0500)
committerPhil Miller <mille121@illinois.edu>
Tue, 17 Apr 2012 20:32:02 +0000 (15:32 -0500)
src/ck-perf/trace-projections.C

index 5d9681666bd4525602897d79436f53523572b057..227ac0bbadbac6bd93a8a5435d3acac2780ad4fd 100644 (file)
@@ -1016,7 +1016,9 @@ TraceProjections::TraceProjections(char **argv):
 
 
 #if CMK_PROJECTIONS_USE_ZLIB
-  int compressed = CmiGetArgFlagDesc(argv,"+gz-trace","Write log files pre-compressed with gzip");
+  int compressed = true || CmiGetArgFlagDesc(argv,"+gz-trace","Write log files pre-compressed with gzip");
+  int disableCompressed = CmiGetArgFlagDesc(argv,"+no-gz-trace","Disable writing log files pre-compressed with gzip");
+  compressed = compressed && !disableCompressed;
 #else
   // consume the flag so there's no confusing
   CmiGetArgFlagDesc(argv,"+gz-trace",