diff options
author | Stéphane Lesimple <stephane_btrfs@lesimple.fr> | 2018-07-04 21:20:13 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 15:03:21 +0200 |
commit | 48a2818159792bdd1fcb98aab6203a1080d4c310 (patch) | |
tree | 7f4e7430ddbd3c8e0ce550ad84f4aaadebb7f4a7 /task-utils.c | |
parent | e6203e6ff9fc0ee2f15dd06b4db61b89eaace982 (diff) |
btrfs-progs: fix nanosecs in task_period_start
This is a single-line fix on the preexisting task_period_start function.
Signed-off-by: Stéphane Lesimple <stephane_btrfs@lesimple.fr>
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'task-utils.c')
-rw-r--r-- | task-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |