/** * Clears the history of transfer progress data. */ protected void clearHistory() { synchronized(synchronizeObject) { // empty history Long currentSecond = new Long(System.currentTimeMillis() / 1000); for (long sec = earliestHistorySecond; sec <= currentSecond; sec++) { Long pSec = new Long(sec); Long bytes = historyOfBytesBySecond.remove(pSec); removedFromHistory(pSec, bytes); } } }
/** * Clears the history of transfer progress data. */ protected void clearHistory() { synchronized(synchronizeObject) { // empty history Long currentSecond = new Long(System.currentTimeMillis() / 1000); for (long sec = earliestHistorySecond; sec <= currentSecond; sec++) { Long pSec = new Long(sec); Long bytes = historyOfBytesBySecond.remove(pSec); removedFromHistory(pSec, bytes); } } }
Long pSec = new Long(sec); Long bytes = historyOfBytesBySecond.remove(pSec); removedFromHistory(pSec, bytes);
Long pSec = new Long(sec); Long bytes = historyOfBytesBySecond.remove(pSec); removedFromHistory(pSec, bytes);