]> git.nbdom.net Git - nb.git/commitdiff
etc/dbq/data.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 15 Oct 2024 07:48:09 +0000 (09:48 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 15 Oct 2024 07:48:09 +0000 (09:48 +0200)
etc/dbq/data.php

index 34cdb11f4279bd88a345f10969cd88a4215d78cc..078ddb1120be05d9063efa19f8a7153167f18f8d 100644 (file)
@@ -22,13 +22,13 @@ $DBQ['data'] = [
                        'host_info_backup' => [
                                        'sql' => preg_replace('/[\t\r\n]/','',"
                                                SELECT host
+                                                       ,max(updated) as updated
                                                        ,REPLACE(REPLACE(hi.key,'backup_servers.',''),'.dirs','') as server
                                                        ,'' as time
                                                        ,'' as files_transfer
                                                        ,'' as files_total
                                                        ,'' as bytes_transfer
                                                        ,'' as bytes_total
-                                                       ,max(updated) as updated
                                                 FROM host_info hi
                                                 WHERE key LIKE 'backup_servers.%.dirs'
                                                 GROUP BY host,server ORDER BY updated DESC, host