projects
/
trust_router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5366462
)
Correct a comment
author
Jennifer Richards
<jennifer@painless-security.com>
Thu, 3 May 2018 21:36:30 +0000
(17:36 -0400)
committer
Jennifer Richards
<jennifer@painless-security.com>
Thu, 3 May 2018 21:36:30 +0000
(17:36 -0400)
common/tr_util.c
patch
|
blob
|
history
diff --git
a/common/tr_util.c
b/common/tr_util.c
index
f45ca2b
..
2e59606
100644
(file)
--- a/
common/tr_util.c
+++ b/
common/tr_util.c
@@
-116,8
+116,9
@@
int tr_add_timespec(const struct timespec *ts1, const struct timespec *ts2, stru
* The returned tv_nsec is always positive and less than 1e9.
*
* (The value represented is tv_sec + tv_nsec/1e9 seconds - this is a little
- * counterintuitive when tv_sec is positive. E.g., -1.5 seconds is represented
- * as {-2, 500000000).)
+ * counterintuitive when tv_sec is negative. E.g., -1.5 seconds is represented
+ * as {-2, 500000000). Negative time_t values are not guaranteed to be supported
+ * anyway, so it's probably best to stay away from them.)
*
* @param ts1
* @param ts2