From f90ec82b2eae1d9055a1600ede34a4d5a2a8beaa Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 27 Mar 2013 01:09:23 +0000 Subject: [PATCH] Minor fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4820 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 32745035c..4063ffefd 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -9458,7 +9458,7 @@ static uint64_t scst_get_usec(void) ktime_get_ts(&ts); #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16) - return (uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec; + return ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) / 1000; #else #if (BITS_PER_LONG > 32) return timespec_to_ns(&ts) / 1000;