From 004b3586da7e636f81688ace20f902ddbd72ad8c Mon Sep 17 00:00:00 2001 From: Paresh Mathur Date: Fri, 23 Jul 2021 20:37:14 +0200 Subject: [PATCH] fix schedule interval, typo in constructor call --- src/timer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.jl b/src/timer.jl index 1e58a04..36dcf81 100644 --- a/src/timer.jl +++ b/src/timer.jl @@ -152,7 +152,7 @@ function schedule_unique(f::Function, interval) end function schedule_interval(f::Function, interval, first_interval=interval) - push!(scheduler[], RepeatScheduled(WeakRef(f), elapsed(scheduler[])+first_interval*1e9), interval*1e9 ) + push!(scheduler[], RepeatScheduled(WeakRef(f), elapsed(scheduler[])+first_interval*1e9, interval*1e9 )) @debug "Added Repeated Schedule" f end unschedule(f::Function) = filter!(WeakRef(f), scheduler[])