fix setting of errata count
This commit is contained in:
parent
48d8279f63
commit
8c8deeda97
3
main.go
3
main.go
@ -157,6 +157,7 @@ func main() {
|
||||
fmt.Println(err)
|
||||
}
|
||||
l := got.Length
|
||||
fmt.Printf("Found %d errata, I know about: %d\n", l, errataCount)
|
||||
if l > errataCount {
|
||||
log.Println("Found new errata")
|
||||
alertRooms, _ := store.Get("errata_rooms")
|
||||
@ -174,7 +175,7 @@ func main() {
|
||||
errataCount = l
|
||||
}
|
||||
fmt.Printf("Setting errata_count to %d\n", l)
|
||||
store.Set("errata_count", string(l))
|
||||
store.Set("errata_count", strconv.Itoa(l))
|
||||
time.Sleep(2 * time.Hour)
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user