Skip to content

Commit

Permalink
Merge pull request #22 from haiwen/statistics
Browse files Browse the repository at this point in the history
Fix statistic error
  • Loading branch information
killing authored Feb 15, 2017
2 parents 4ce41cf + 87a9a49 commit bf01510
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/repo-mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3584,7 +3584,10 @@ seaf_get_total_storage (GError **error)
{
gint64 size = 0;
int ret = seaf_db_statement_foreach_row (seaf->db,
"SELECT size FROM RepoSize",
"SELECT size FROM RepoSize s "
"LEFT JOIN VirtualRepo v "
"ON s.repo_id=v.repo_id "
"WHERE v.repo_id IS NULL",
get_total_storage_cb,
&size, 0);
if (ret < 0) {
Expand Down

0 comments on commit bf01510

Please sign in to comment.