From 56e2d167a16227054cc3bde0d29b3bc76066c5c4 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 7 Mar 2020 10:57:06 -0700 Subject: [PATCH] more changes to example.php --- example.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example.php b/example.php index 8f58a3c..a98a5da 100644 --- a/example.php +++ b/example.php @@ -107,12 +107,12 @@ echo '
', "\n"; $dbname = GetCFGValue('dashboard_sql_filename'); $db = new SQLite3($dbname, SQLITE3_OPEN_READONLY); - $ss = 'SELECT mycall,sfx,urcall,module,gateway,strftime("%s","now")-lasttime FROM LHEARD ORDER BY 6 LIMIT '.GetCFGValue('dashboard_lastheard_count'); + $ss = 'SELECT mycall,sfx,urcall,module,gateway,strftime("%s","now")-lasttime FROM LHEARD ORDER BY 6 LIMIT '.GetCFGValue('dashboard_lastheard_count').' '; if ($stmnt = $db->prepare($ss)) { if ($result = $stmnt->execute()) { while ($row = $result->FetchArray(SQLITE3_NUM)) { $cs = str_pad(trim($row[0]).'/'.trim($row[1]), 13); - $rstr = $cs.' '.$row[2].' '.$row[3].' '.$row[4].' '.SecToStrstring($row[4]).'
'; + $rstr = $cs.' '.$row[2].' '.$row[3].' '.$row[4].' '.SecToString(intval($row[5])).'
'; echo str_replace(' ', ' ', $rstr), "\n"; } $result->finalize();