From 48a2818159792bdd1fcb98aab6203a1080d4c310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 4 Jul 2018 21:20:13 +0200 Subject: btrfs-progs: fix nanosecs in task_period_start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a single-line fix on the preexisting task_period_start function. Signed-off-by: Stéphane Lesimple Reviewed-by: Su Yue Signed-off-by: David Sterba --- task-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'task-utils.c') diff --git a/task-utils.c b/task-utils.c index 12b00027..284cbb3b 100644 --- a/task-utils.c +++ b/task-utils.c @@ -102,7 +102,7 @@ int task_period_start(struct task_info *info, unsigned int period_ms) info->periodic.wakeups_missed = 0; sec = period_ms / 1000; - ns = (period_ms - (sec * 1000)) * 1000; + ns = (period_ms - (sec * 1000)) * 1000 * 1000; itval.it_interval.tv_sec = sec; itval.it_interval.tv_nsec = ns; itval.it_value.tv_sec = sec; -- cgit v1.2.3