prpr
Well-Known Member
Seems like this is the obvious fix then:
I wonder whether checking eSystem rather than eTransMode would be a better idea. This is the trouble when you don't know exactly what the database fields contain, them having been reverse engineered...
Diff:
humax ~ # diff -u /mod/webif/html/diag/mux.jim~ /mod/webif/html/diag/mux.jim
--- /mod/webif/html/diag/mux.jim~
+++ /mod/webif/html/diag/mux.jim
@@ -82,10 +82,10 @@
}
}
puts "<td>$mux</td>"
- if {$eTransMode == 2} {
- puts "<td>DVB-T (SD)</td>"
- } else {
+ if {$eTransMode == 6} {
puts "<td class=blood>DVB-T2 (HD)</td>"
+ } else {
+ puts "<td>DVB-T (SD)</td>"
}
puts "<td>[llength $channels]
I wonder whether checking eSystem rather than eTransMode would be a better idea. This is the trouble when you don't know exactly what the database fields contain, them having been reverse engineered...
Diff:
humax ~ # diff -u /mod/webif/html/diag/mux.jim~ /mod/webif/html/diag/mux.jim
--- /mod/webif/html/diag/mux.jim~
+++ /mod/webif/html/diag/mux.jim
@@ -43,13 +43,13 @@
"
foreach tw [$db query {
select tsIdx, szNetName, usTsID, ulFrequency, ucLevel,
- ucQuality, eTransMode, eConstellation
+ ucQuality, eSystem, eConstellation
from TBL_TS join TBL_NET using (netIdx)
order by ulFrequency
}] {
lassign $tw \
x tsIdx x netName x usTsID x ulFrequency x ucLevel x ucQuality \
- x eTransMode x eConstellation
+ x eSystem x eConstellation
puts "
<tr class=odd>
@@ -82,7 +82,7 @@
}
}
puts "<td>$mux</td>"
- if {$eTransMode == 2} {
+ if {$eSystem == 0} {
puts "<td>DVB-T (SD)</td>"
} else {
puts "<td class=blood>DVB-T2 (HD)</td>"
Last edited by a moderator: