Skip to content

Commit

Permalink
Fix wrong totalhits value (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleb authored and ewhal committed Jul 4, 2017
1 parent fdff3ac commit 2319b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (p *TorrentParam) Find(client *elastic.Client) (int64, []model.Torrent, err
log.Infof("Cannot unmarshal elasticsearch torrent: %s", err)
}
}
return torrentCount, torrents, nil
return result.TotalHits(), torrents, nil

}

Expand Down

0 comments on commit 2319b67

Please sign in to comment.