MCPcopy Create free account
hub / github.com/FlashpointProject/FlashpointUltimateUpdater / GetTotalDownloadedSize

Method GetTotalDownloadedSize

repo.go:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (repo *SqliteRepo) GetTotalDownloadedSize() (int64, error) {
41 var total int64
42 err := repo.db.QueryRow("SELECT IFNULL(sum(size), 0) FROM files WHERE done = true").
43 Scan(&total)
44 if err != nil {
45 return 0, err
46 }
47 return total, nil
48}
49
50func (repo *SqliteRepo) GetTotalDownladedFiles() (int64, error) {
51 var total int64

Callers 1

loadDatabaseResumeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected