When the new result is empty, including when another scan is running in the background, the table was emptied, but the graph persisted.
With this change, the list will persist and missing APs will be shown faded.
Signed-off-by: Milad Mohtashamirad <miladmohtashamirad@gmail.com>
(cherry picked from commit
03f16840593c2b4db0628bcdce4ebd2956723e03)
scanCache[results[i].bssid] = {};
scanCache[results[i].bssid].data = results[i];
+ scanCache[results[i].bssid].data.stale = false;
}
if (scanCache[local_wifi.bssid] == null)
}
for (var k in scanCache)
- if (scanCache[k].stale)
+ if (scanCache[k].data.stale)
results.push(scanCache[k].data);
results.sort(function(a, b) {
E('span', { 'style': s }, '%h'.format(res.bssid))
]);
- res.stale = true;
+ scanCache[results[i].bssid].data.stale = true;
}
cbi_update_table(table, rows);