mirror of https://bitbucket.org/ausocean/av.git
Initialize vs by calling VarSum() before looping.
This commit is contained in:
parent
5ff305e71a
commit
9dd53b58a0
|
@ -269,12 +269,11 @@ func run() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
vars, _ := ns.Vars()
|
vars, _ := ns.Vars()
|
||||||
|
vs := ns.VarSum()
|
||||||
paused := false
|
paused := false
|
||||||
if vars["mode"] == "Paused" {
|
if vars["mode"] == "Paused" {
|
||||||
paused = true
|
paused = true
|
||||||
}
|
}
|
||||||
|
|
||||||
var vs int
|
|
||||||
for {
|
for {
|
||||||
if err := send(&ns); err != nil {
|
if err := send(&ns); err != nil {
|
||||||
config.Logger.Log(progName, "Warning", err.Error())
|
config.Logger.Log(progName, "Warning", err.Error())
|
||||||
|
|
Loading…
Reference in New Issue