Fixed Local Heard
Issue if short transmissions produced multiline replies from logtailer
This commit is contained in:
parent
2253eb9ee7
commit
43e15b2d8b
1 changed files with 14 additions and 11 deletions
|
@ -259,19 +259,22 @@ function getLocalHeard(document, event) {
|
|||
// M: 2020-11-01 21:33:27.454 YSF, received network data from DG2MAS to DG-ID 0 at DG2MAS
|
||||
// M: 2020-11-01 21:33:35.025 YSF, received network end of transmission from DG2MAS to DG-ID 0, 7.7 seconds, 0% packet loss, BER: 0.0%
|
||||
$(document).ready(function() {
|
||||
if (getSource(event.data) == "RF") {
|
||||
if (getDuration(event.data) !== "") {
|
||||
lines = event.data.split("\n");
|
||||
lines.forEach(function(line, index, array)) {
|
||||
if (getSource(line) == "RF") {
|
||||
if (getDuration(line) !== "") {
|
||||
t_localh.row.add( [
|
||||
getTimestamp(event.data),
|
||||
getMode(event.data),
|
||||
getCallsign(event.data),
|
||||
getTarget(event.data),
|
||||
getSource(event.data),
|
||||
getDuration(event.data),
|
||||
getBER(event.data)
|
||||
getTimestamp(line),
|
||||
getMode(line),
|
||||
getCallsign(line),
|
||||
getTarget(line),
|
||||
getSource(line),
|
||||
getDuration(line),
|
||||
getBER(line)
|
||||
] ).draw();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue