예제 #1
0
  private void runPoll() {
    long now = System.currentTimeMillis();
    long diff = (now - DM.I.getConfiguration().getInternLastPollTime()) / 1000;
    DM.I.getConfiguration().setInternLastPollTime(now);

    Log.d(LOGT, "Received poll request. Last poll was " + diff + "s ago");

    mNagiosPollHandler.poll();
  }
예제 #2
0
 @Override
 public void onStart(Intent intent, int startId) {
   super.onStart(intent, startId);
   DM.I.getPollHandler().poll();
 }
예제 #3
0
 public String getLastPollTimeSuccessfullText() {
   return "Last successfull update was "
       + Millis.msToText(
           System.currentTimeMillis() - DM.I.getConfiguration().getInternLastPollTimeSuccessfull())
       + " ago";
 }