diff --git a/model.go b/model.go index 2617fb42..75fd8c78 100644 --- a/model.go +++ b/model.go @@ -191,7 +191,10 @@ func (m *Model) ConnectionStats() map[string]ConnectionInfo { } } - ci.Completion = int(100 * have / tot) + ci.Completion = 100 + if tot != 0 { + ci.Completion = int(100 * have / tot) + } res[node] = ci }