persistable stats

This commit is contained in:
idk
2022-12-06 22:15:07 +00:00
parent d0a9652f9d
commit 3ad5f63dbb

View File

@ -85,6 +85,7 @@ func Serve(host, port string) error {
return err
}
s := server.Serve(*dir, *statsfile)
defer s.Stats.Save()
return http.Serve(ln, s)
}