]> git.stg.codes - stg.git/commitdiff
Fix bug with possible start all subsystems before timer becomes valid
authorMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 09:55:05 +0000 (12:55 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 09:55:05 +0000 (12:55 +0300)
projects/stargazer/stg_timer.cpp

index dd0a04e1a9d249ceae200214b528d1b0a1f60e1f..6d2b4b0cdd245a28a33db648ba631befa64f123a 100644 (file)
@@ -54,6 +54,8 @@ switch (START_TIME)
         stgTime = mktime(&lt);
         break;
     }
+#else
+stgTime = time(NULL);
 #endif
 
 nonstop = 1;