From 1900f2056035e80123c306e22258138ed387fd13 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 31 Mar 2020 07:44:59 -0700 Subject: [PATCH] Dashboard reports Callsign Routes --- QnetGateway.cpp | 2 ++ index.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index cd4917d..6a9e84c 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1005,6 +1005,8 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const i std::string reflector((const char *)g2buf.hdr.urcall, 8); if (0 == reflector.compare("CQCQCQ ")) set_dest_rptr('A'+i, reflector); + else if (0 == reflector.compare(OWNER)) + reflector.assign("CSRoute"); qnDB.UpdateLH(lhcallsign.c_str(), lhsfx.c_str(), 'A'+i, reflector.c_str()); } diff --git a/index.php b/index.php index bd6e9a1..3803a1e 100644 --- a/index.php +++ b/index.php @@ -65,7 +65,7 @@ function SecToString(int $sec) { $sec %= 3600; $min = intdiv($sec, 60); $sec %= 60; - if ($hrs) return sprintf("%2d hr %2d min %2d sec", $hrs, $min, $sec); + if ($hrs) return sprintf("%2d hr %2d min", $hrs, $min); if ($min) return sprintf("%2d min %2d sec", $min, $sec); return sprintf("%2d sec", $sec); } @@ -149,7 +149,7 @@ foreach($showlist as $section) { break; case 'LH': echo 'Last Heard:
', "\n"; - $rstr = 'MyCall/Sfx Mod From Last Time
'; + $rstr = 'MyCall/Sfx Mod Via Time
'; echo str_replace(' ', ' ', $rstr), "\n"; $dbname = $cfgdir.'/'.GetCFGValue('dash_sql_filename'); $db = new SQLite3($dbname, SQLITE3_OPEN_READONLY);