fixed bug where ekg does not show "no data" and fixed bug where snmp was not closed correctly
This commit is contained in:
parent
3c2cb48eed
commit
cf756d4cf7
|
@ -107,7 +107,7 @@ public class ActorDisplay {
|
||||||
|
|
||||||
if (++counterEmg > timeout) {
|
if (++counterEmg > timeout) {
|
||||||
lblEmg.setForeground(offColor);
|
lblEmg.setForeground(offColor);
|
||||||
lblEkg.setText(offText);
|
lblEmg.setText(offText);
|
||||||
} else {
|
} else {
|
||||||
lblEmg.setForeground(onColor);
|
lblEmg.setForeground(onColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,8 @@ public class SnmpStatClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snmp.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue