aboutsummaryrefslogtreecommitdiff
path: root/manual/time.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/time.texi')
-rw-r--r--manual/time.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/time.texi b/manual/time.texi
index 57fbdf2..463814d 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -354,7 +354,7 @@ timeval_subtract (result, x, y)
y->tv_sec += nsec;
@}
if (x->tv_usec - y->tv_usec > 1000000) @{
- int nsec = (y->tv_usec - x->tv_usec) / 1000000;
+ int nsec = (x->tv_usec - y->tv_usec) / 1000000;
y->tv_usec += 1000000 * nsec;
y->tv_sec -= nsec;
@}