Module Name: src Committed By: pooka Date: Tue Jan 18 14:45:30 UTC 2011
Modified Files: src/lib/librumphijack: hijack.c Log Message: Fix conversion: there are 1000*1000 nanoseconds in a millisecond, not 1000. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/librumphijack/hijack.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumphijack/hijack.c diff -u src/lib/librumphijack/hijack.c:1.10 src/lib/librumphijack/hijack.c:1.11 --- src/lib/librumphijack/hijack.c:1.10 Tue Jan 18 11:04:10 2011 +++ src/lib/librumphijack/hijack.c Tue Jan 18 14:45:30 2011 @@ -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; }