Show database file size on info page

This commit is contained in:
2022-08-21 13:24:52 +09:30
parent a03baca498
commit f98df478bb
7 changed files with 25 additions and 10 deletions

View File

@@ -9,6 +9,6 @@ func MemInfo() string {
stats := runtime.MemStats{}
runtime.ReadMemStats(&stats)
return fmt.Sprintf("%.3fMb", float64(stats.Alloc)/1024.0/1024.0)
return fmt.Sprintf("%.1fMb", float64(stats.Alloc)/1024.0/1024.0)
}