minor loop tool patches

This commit is contained in:
Michael Quigley 2022-10-18 12:01:41 -04:00
parent 51d78526fe
commit 044ba042aa
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -76,6 +76,7 @@ func (r *loopCmd) run(_ *cobra.Command, _ []string) {
deltaSeconds := l.stopTime.Sub(l.startTime).Seconds()
xfer := int64(float64(l.bytes) / deltaSeconds)
totalXfer += xfer
totalMismatches += l.mismatches
xferSec := util.BytesToSize(xfer)
logrus.Infof("looper #%d: %d mismatches, %s/sec", l.id, l.mismatches, xferSec)
}
@ -154,7 +155,7 @@ func (l *looper) startup() {
if err != nil {
panic(err)
}
l.zif, err = zrokdir.ZitiIdentityFile("environment")
l.zif, err = zrokdir.ZitiIdentityFile("backend")
if err != nil {
panic(err)
}