Parallel Programming - Stuff happened
[matches/honours.git] / course / semester2 / pprog / assignment1 / single-thread / nbody.h
index a041574..4d53f9d 100644 (file)
@@ -33,7 +33,7 @@ else \
 
 //Macro to be overwritten in multithreaded versions, called before the graphics is allowed to draw anything
 #define BeforeDraw() \
-if (options.verbosity != 0 && universe.steps % options.verbosity == 1) \
+if (options.verbosity != 0 && universe.steps % options.verbosity == 0) \
        DisplayStatistics(); \
 System_Compute(&universe);
 

UCC git Repository :: git.ucc.asn.au