diff --git a/plugins/sphinx/sphinx_connections b/plugins/sphinx/sphinx_connections index da389a0a..029a6db2 100755 --- a/plugins/sphinx/sphinx_connections +++ b/plugins/sphinx/sphinx_connections @@ -54,6 +54,9 @@ if (!file_exists($sTmpFilePath)) { fclose($fp); $toShow = (int) ($iCurrent - (int) $iOldCount); + if ($toShow < 0) { + $toShow = 0; + } } echo "current.value $toShow\n";