git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add user list loading
[stg.git]
/
projects
/
stargazer
/
stg_timer.cpp
diff --git
a/projects/stargazer/stg_timer.cpp
b/projects/stargazer/stg_timer.cpp
index dd0a04e1a9d249ceae200214b528d1b0a1f60e1f..fff79a3918de7ae93e1bb2258e7ebbd942919413 100644
(file)
--- a/
projects/stargazer/stg_timer.cpp
+++ b/
projects/stargazer/stg_timer.cpp
@@
-3,7
+3,7
@@
#include <ctime>
#include <cstring>
#include <ctime>
#include <cstring>
-#include "common.h"
+#include "
stg/
common.h"
static int nonstop;
static pthread_t thrStgTimer;
static int nonstop;
static pthread_t thrStgTimer;
@@
-54,6
+54,8
@@
switch (START_TIME)
stgTime = mktime(<);
break;
}
stgTime = mktime(<);
break;
}
+#else
+stgTime = time(NULL);
#endif
nonstop = 1;
#endif
nonstop = 1;