db - amend SizeTable method

This commit is contained in:
Mahdi Abu Yasmine 2023-12-02 14:06:37 +01:00
parent b075b3aa79
commit c3de6a3814

View File

@ -191,7 +191,9 @@ func (db *Db) SizeTable(dbname string) []TableSize {
fmt.Printf("cannot get table size of db %s : %v", dbname, err)
return false
}
rs = append(rs, ts)
if len(ts.Table) > 0 {
rs = append(rs, ts)
}
}
return true
})