Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumphijack Fix conversion: there are 1000*1000 nanose...
details: https://anonhg.NetBSD.org/src/rev/55534d86720a
branches: trunk
changeset: 760997:55534d86720a
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Jan 18 14:45:30 2011 +0000
description:
Fix conversion: there are 1000*1000 nanoseconds in a millisecond, not 1000.
diffstat:
lib/librumphijack/hijack.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 958bd97d1dd1 -r 55534d86720a lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c Tue Jan 18 11:04:10 2011 +0000
+++ b/lib/librumphijack/hijack.c Tue Jan 18 14:45:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.10 2011/01/18 11:04:10 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.11 2011/01/18 14:45:30 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.10 2011/01/18 11:04:10 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.11 2011/01/18 14:45:30 pooka Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -960,7 +960,7 @@
if (timeout != INFTIM) {
ts.tv_sec = timeout / 1000;
- ts.tv_nsec = (timeout % 1000) * 1000;
+ ts.tv_nsec = (timeout % 1000) * 1000*1000;
tsp = &ts;
}
Home |
Main Index |
Thread Index |
Old Index