Dashboard reports Callsign Routes

pull/14/head
Tom Early 6 years ago
parent f66ed1624f
commit 1900f20560

@ -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());
}

@ -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:<br><code>', "\n";
$rstr = 'MyCall/Sfx Mod From Last Time<br>';
$rstr = 'MyCall/Sfx Mod Via Time<br>';
echo str_replace(' ', '&nbsp;', $rstr), "\n";
$dbname = $cfgdir.'/'.GetCFGValue('dash_sql_filename');
$db = new SQLite3($dbname, SQLITE3_OPEN_READONLY);

Loading…
Cancel
Save

Powered by TurnKey Linux.