projects
/
darkstat-debian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start upgrade to darkstat-3.0.719.
[darkstat-debian]
/
now.h
diff --git
a/now.h
b/now.h
index
03366e7
..
12231a4
100644
(file)
--- a/
now.h
+++ b/
now.h
@@
-23,8
+23,10
@@
void now_update(void); /* once per event loop (in darkstat.c) */
time_t now_real(void);
time_t now_mono(void);
time_t now_real(void);
time_t now_mono(void);
-time_t mono_to_real(const time_t t);
-time_t real_to_mono(const time_t t);
+/* Monotonic times can be negative (a time from before the machine booted) so
+ * treat them as signed. */
+time_t mono_to_real(const int64_t t);
+int64_t real_to_mono(const time_t t);
/* Emits warnings if a call is too slow. */
struct timespec;
/* Emits warnings if a call is too slow. */
struct timespec;