Increase ping interval (possible cause of UI flailing?)
parent
1e1188a318
commit
709e779eca
|
@ -10,7 +10,7 @@ import { API } from "../api/index";
|
|||
import { FarmBotInternalConfig } from "farmbot/dist/config";
|
||||
import { now } from "../devices/connectivity/qos";
|
||||
|
||||
export const PING_INTERVAL = 4000;
|
||||
export const PING_INTERVAL = 3000;
|
||||
export const ACTIVE_THRESHOLD = PING_INTERVAL * 2;
|
||||
|
||||
export const LAST_IN: keyof FarmBotInternalConfig = "LAST_PING_IN";
|
||||
|
|
|
@ -55,7 +55,7 @@ describe("<FbosDetails/>", () => {
|
|||
"Firmware", "fakeFirmware",
|
||||
"Firmware commit", "fakeFwCo",
|
||||
"FAKETARGET CPU temperature", "48.3", "C",
|
||||
"WiFi Strength", "-49dBm",
|
||||
"WiFi strength", "-49dBm",
|
||||
"Beta release Opt-In",
|
||||
"Uptime", "0 seconds",
|
||||
"Memory usage", "0MB",
|
||||
|
@ -117,7 +117,7 @@ describe("<FbosDetails/>", () => {
|
|||
const p = fakeProps();
|
||||
p.botInfoSettings.wifi_level = undefined;
|
||||
const wrapper = mount(<FbosDetails {...p} />);
|
||||
expect(wrapper.text()).toContain("WiFi Strength: N/A");
|
||||
expect(wrapper.text()).toContain("WiFi strength: N/A");
|
||||
expect(wrapper.text()).not.toContain("dBm");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue