long now = System.currentTimeMillis();
Enumeration enumeration = Registry.taskHashtable.elements();
while (enumeration.hasMoreElements()) {
Task task = (Task) enumeration.nextElement();
long duration = task.duration;
WorkingTask workingTask = null;
if (task.duration > 0) {
for (int i = 0; i < Registry.workingTaskVector.size(); i++) {
workingTask = (WorkingTask) Registry.workingTaskVector.elementAt(i);
if (task.getId() == workingTask.getId0()) {
if (workingTask.status == WorkingTask.STATUS_STARTED) {