diff options
author | Simon Rettberg | 2017-10-12 16:14:12 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-12 16:14:12 +0200 |
commit | 025019a7a7da442648855716c6eb77e5ce5e627e (patch) | |
tree | f7c6e866fc9e1cd02fb159812a9b04550aad3967 /modules-available | |
parent | [dnbd3] sadf (diff) | |
download | slx-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')
-rw-r--r-- | modules-available/runmode/inc/runmode.inc.php | 5 |
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 = ''; |