mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
statistics2.cgi: improve age calculation
git-svn-id: https://svn.fhem.de/fhem/trunk@14742 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
25add24ed0
commit
889f9c648e
@ -167,12 +167,7 @@ sub doAggregate() {
|
|||||||
my $nodesTotal = $dbInfo->{'submissionsTotal'};
|
my $nodesTotal = $dbInfo->{'submissionsTotal'};
|
||||||
my $nodes12 = 0;
|
my $nodes12 = 0;
|
||||||
|
|
||||||
$countAll{'system'}{'age'}{'0'} = 0;
|
map { $countAll{system}{age}{$_} = 0; } (0,7,30,180,365,999);
|
||||||
$countAll{'system'}{'age'}{'7'} = $countAll{'system'}{'age'}{'0'};
|
|
||||||
$countAll{'system'}{'age'}{'30'} = $countAll{'system'}{'age'}{'0'};
|
|
||||||
$countAll{'system'}{'age'}{'180'} = $countAll{'system'}{'age'}{'0'};
|
|
||||||
$countAll{'system'}{'age'}{'365'} = $countAll{'system'}{'age'}{'0'};
|
|
||||||
$countAll{'system'}{'age'}{'999'} = $countAll{'system'}{'age'}{'0'};
|
|
||||||
|
|
||||||
$sql = "SELECT geo,json FROM jsonNodes WHERE uniqueID <> 'databaseInfo' ";
|
$sql = "SELECT geo,json FROM jsonNodes WHERE uniqueID <> 'databaseInfo' ";
|
||||||
$sql .= "AND geo <> '' AND json <> '' and lastseen > $limit";
|
$sql .= "AND geo <> '' AND json <> '' and lastseen > $limit";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user