summaryrefslogtreecommitdiffstats
path: root/modules-available/runmode
diff options
context:
space:
mode:
authorSimon Rettberg2017-10-12 16:14:12 +0200
committerSimon Rettberg2017-10-12 16:14:12 +0200
commit025019a7a7da442648855716c6eb77e5ce5e627e (patch)
treef7c6e866fc9e1cd02fb159812a9b04550aad3967 /modules-available/runmode
parent[dnbd3] sadf (diff)
downloadslx-admin-025019a7a7da442648855716c6eb77e5ce5e627e.tar.gz
slx-admin-025019a7a7da442648855716c6eb77e5ce5e627e.tar.xz
slx-admin-025019a7a7da442648855716c6eb77e5ce5e627e.zip
[runmode] Return lastseen too in detailed mode
Diffstat (limited to 'modules-available/runmode')
-rw-r--r--modules-available/runmode/inc/runmode.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/runmode/inc/runmode.inc.php b/modules-available/runmode/inc/runmode.inc.php
index bf20596b..780f12c9 100644
--- a/modules-available/runmode/inc/runmode.inc.php
+++ b/modules-available/runmode/inc/runmode.inc.php
@@ -93,7 +93,8 @@ class RunMode
* @param string $modeId
* @param bool $detailed whether to return meta data about machine, not just machineuuid
* @param bool $assoc use machineuuid as array key
- * @return array <key=machineuuid>, value={'machineuuid', 'modedata', <'hostname', 'clientip', 'macaddr', 'locationid'>}
+ * @return array <key=machineuuid>, value={'machineuuid', 'modedata',
+ * <'hostname', 'clientip', 'macaddr', 'locationid', 'lastseen'>}
*/
public static function getForMode($module, $modeId, $detailed = false, $assoc = false)
{
@@ -101,7 +102,7 @@ class RunMode
$module = $module->getIdentifier();
}
if ($detailed) {
- $sel = ', m.hostname, m.clientip, m.macaddr, m.locationid';
+ $sel = ', m.hostname, m.clientip, m.macaddr, m.locationid, m.lastseen';
$join = 'INNER JOIN machine m USING (machineuuid)';
} else {
$join = $sel = '';