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
|
||||
}
|
||||
vars, _ := ns.Vars()
|
||||
vs := ns.VarSum()
|
||||
paused := false
|
||||
if vars["mode"] == "Paused" {
|
||||
paused = true
|
||||
}
|
||||
|
||||
var vs int
|
||||
for {
|
||||
if err := send(&ns); err != nil {
|
||||
config.Logger.Log(progName, "Warning", err.Error())
|
||||
|
|
Loading…
Reference in New Issue