From 2d49680225dc454587c6ddf6c4bb79b2f93abd5a Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Tue, 13 Apr 2021 09:18:09 +0800 Subject: [PATCH] EX-3006 lipe: fix time calculation mistake 1ms = 1,000us = 1,000,000ns Change-Id: Iab99f0190ca6d91178d10519b44bce989246d03d Signed-off-by: Lei Feng Test-Parameters: trivial Reviewed-on: https://review.whamcloud.com/43288 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- lipe/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lipe/src/posix.c b/lipe/src/posix.c index 957da91..322ade1 100644 --- a/lipe/src/posix.c +++ b/lipe/src/posix.c @@ -122,7 +122,7 @@ static void posix_scan_free_works(struct global_info *ginfo) static int64_t timespec2ms(struct timespec tim) { - return ((int64_t)tim.tv_sec * 1000) + ((int64_t)tim.tv_nsec / 1000); + return ((int64_t)tim.tv_sec * 1000) + ((int64_t)tim.tv_nsec / 1000000); } static void posix_scan_copy_attrs(struct lipe_object_attrs *attrs, -- 1.8.3.1