mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Fixed a sorting bug in the disk logstream, which removed numeric values within the charts
This commit is contained in:
parent
746d7843cb
commit
b8c9cdf9eb
@ -606,7 +606,6 @@ class LogStreamDisk extends LogStream {
|
|||||||
else // Just copy the value!
|
else // Just copy the value!
|
||||||
$myFieldData = $logArray[$szFieldId];
|
$myFieldData = $logArray[$szFieldId];
|
||||||
|
|
||||||
|
|
||||||
if ( isset($aResult[ $myFieldData ]) )
|
if ( isset($aResult[ $myFieldData ]) )
|
||||||
$aResult[ $myFieldData ]++;
|
$aResult[ $myFieldData ]++;
|
||||||
else
|
else
|
||||||
@ -627,7 +626,8 @@ class LogStreamDisk extends LogStream {
|
|||||||
} while ( ($ret = $this->ReadNext($uID, $logArray)) == SUCCESS );
|
} while ( ($ret = $this->ReadNext($uID, $logArray)) == SUCCESS );
|
||||||
|
|
||||||
// Sort Array, so the highest count comes first!
|
// Sort Array, so the highest count comes first!
|
||||||
array_multisort($aResult, SORT_NUMERIC, SORT_DESC);
|
arsort($aResult);
|
||||||
|
// array_multisort($aResult, SORT_NUMERIC, SORT_DESC);
|
||||||
|
|
||||||
if ( isset($aResult[ $content['LN_STATS_OTHERS'] ]) )
|
if ( isset($aResult[ $content['LN_STATS_OTHERS'] ]) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user