diff options
-rw-r--r-- | common/tio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/tio.c b/common/tio.c index 9383733..0039fd1 100644 --- a/common/tio.c +++ b/common/tio.c @@ -75,8 +75,9 @@ struct tio_fileinfo { #endif /* DEBUG_TIO_STATS */ }; -/* update the timeout to the value that is remaining before deadline - returns non-zero if there is no more time before the deadline */ +/* update the timeout to the value that is remaining before the deadline + returns the number of milliseconds before the deadline (or a negative + value of the deadline has expired) */ static inline int tio_time_remaining(struct timeval *deadline, int timeout) { struct timeval tv; |