diff options
| author | Jeff Carr <[email protected]> | 2024-01-05 20:29:57 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-05 20:29:57 -0600 |
| commit | 30832551c35db0e398cee43d302e44b0de2e65bc (patch) | |
| tree | a325bb60bc94007433594d55e6f4a23b735cf457 /durationSlider.go | |
| parent | 85cbd78883c7a79195eecb59be85e962025b9db5 (diff) | |
use log Flags
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'durationSlider.go')
| -rw-r--r-- | durationSlider.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/durationSlider.go b/durationSlider.go index 6ae1e00..97aeb53 100644 --- a/durationSlider.go +++ b/durationSlider.go @@ -5,10 +5,10 @@ package gadgets import ( - "log" "fmt" "time" + "go.wit.com/log" "go.wit.com/gui/gui" ) @@ -42,13 +42,13 @@ func (n *Duration) Set(d time.Duration) { timeRange = n.High - n.Low step = timeRange / 1000 if (step == 0) { - log.Println("duration.Set() division by step == 0", n.Low, n.High, timeRange, step) + log.Log(INFO, "duration.Set() division by step == 0", n.Low, n.High, timeRange, step) n.s.Set(0) return } offset = d - n.Low i := int(offset / step) - log.Println("duration.Set() =", n.Low, n.High, d, "i =", i) + log.Log(INFO, "duration.Set() =", n.Low, n.High, d, "i =", i) n.s.I = i n.s.Set(i) n.s.Custom() |
