two seconds instead of one second per wifi scan
This commit is contained in:
parent
795b853b3d
commit
2833b25293
1 changed files with 2 additions and 2 deletions
|
@ -886,7 +886,7 @@ editor = {
|
|||
editor._scan_waits = false;
|
||||
|
||||
if (!data.length) return;
|
||||
if (now-1000 < editor._last_result) return;
|
||||
if (now-2000 < editor._last_result) return;
|
||||
editor._last_result = now;
|
||||
|
||||
// ignore this scan?
|
||||
|
@ -905,7 +905,7 @@ editor = {
|
|||
apid = 'ap-'+item.bssid.replace(/:/g, '-');
|
||||
line = $table.find('tr.'+apid);
|
||||
console.log(line);
|
||||
color = Math.max(0, Math.min(50, item.level+80))
|
||||
color = Math.max(0, Math.min(50, item.level+80));
|
||||
color = 'rgb('+String(250-color*5)+', '+String(color*4)+', 0)';
|
||||
if (line.length) {
|
||||
line.removeClass('old').find(':last-child').text(item.level).css('color', color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue