From abefbf048dc4172644b578d97620a04ca400dbee Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 4 Jun 2010 18:15:11 -0400 Subject: [PATCH] [libstuff] Fix nsec(). --- lib/libstuff/util/nsec.c | 2 +- lib/libwmii_hack/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libstuff/util/nsec.c b/lib/libstuff/util/nsec.c index 9b1fbb68..4046034e 100644 --- a/lib/libstuff/util/nsec.c +++ b/lib/libstuff/util/nsec.c @@ -8,6 +8,6 @@ nsec(void) { struct timeval tv; gettimeofday(&tv, nil); - return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_sec * 1000; + return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000; } diff --git a/lib/libwmii_hack/Makefile b/lib/libwmii_hack/Makefile index beb2732b..e3037c9d 100644 --- a/lib/libwmii_hack/Makefile +++ b/lib/libwmii_hack/Makefile @@ -9,8 +9,8 @@ SOLDFLAGS += $(LIBX11) TARG = libwmii_hack # Can't just link libstuff here. We need PIC objects. OBJ = hack \ - ../libstuff/util/getbase \ - ../libstuff/util/getlong \ + ../libstuff/util/getbase \ + ../libstuff/util/getlong \ ../libstuff/util/tokenize include $(ROOT)/mk/so.mk