コード例 #1
0
ファイル: PollHandler.java プロジェクト: Elbandi/Nagroid
  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
ファイル: PollHandler.java プロジェクト: Elbandi/Nagroid
 public String getLastPollTimeSuccessfullText() {
   return "Last successfull update was "
       + Millis.msToText(
           System.currentTimeMillis() - DM.I.getConfiguration().getInternLastPollTimeSuccessfull())
       + " ago";
 }