mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Merge pull request #157 from iborodikhin/master
Little optimization of plugin
This commit is contained in:
commit
be42c3894b
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ else:
|
||||||
|
|
||||||
client = sphinxsearch.SphinxClient()
|
client = sphinxsearch.SphinxClient()
|
||||||
client.SetServer(server, port)
|
client.SetServer(server, port)
|
||||||
|
client.SetLimits(0, 1, 0, 0)
|
||||||
result = client.Query("", indexName)
|
result = client.Query("", indexName)
|
||||||
docCount = result["total_found"]
|
docCount = result["total_found"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue