[ 1916373 ] InfoUpdater background thread read sys config value in loop
This commit is contained in:
parent
34dea236ee
commit
0f970af92c
|
@ -674,6 +674,8 @@ public final class AMenu extends CFrame
|
||||||
// if (percent > 50)
|
// if (percent > 50)
|
||||||
// System.gc();
|
// System.gc();
|
||||||
|
|
||||||
|
if (DB.isConnected())
|
||||||
|
{
|
||||||
// Requests
|
// Requests
|
||||||
int requests = getRequests();
|
int requests = getRequests();
|
||||||
bRequests.setText(Msg.translate(m_ctx, "R_Request_ID") + ": " + requests);
|
bRequests.setText(Msg.translate(m_ctx, "R_Request_ID") + ": " + requests);
|
||||||
|
@ -691,6 +693,7 @@ public final class AMenu extends CFrame
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
MSystem.get(m_ctx).info();
|
MSystem.get(m_ctx).info();
|
||||||
|
}
|
||||||
} // updateInfo
|
} // updateInfo
|
||||||
|
|
||||||
|
|
||||||
|
@ -770,12 +773,13 @@ public final class AMenu extends CFrame
|
||||||
|
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
|
int sleep = MSysConfig.getIntValue("MENU_INFOUPDATER_SLEEP_MS", 60000, Env.getAD_Client_ID(Env.getCtx()));
|
||||||
while(stop == false)
|
while(stop == false)
|
||||||
{
|
{
|
||||||
updateInfo();
|
updateInfo();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Thread.sleep(MSysConfig.getIntValue("MENU_INFOUPDATER_SLEEP_MS", 60000, Env.getAD_Client_ID(Env.getCtx())));
|
Thread.sleep(sleep);
|
||||||
} catch(InterruptedException ire) { }
|
} catch(InterruptedException ire) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue