Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 34:9935e1c928de
Bug Fixed: Comparation for outdated Artifacts was Wrong.
artifacts/trunk@86 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 15 Sep 2009 09:43:57 +0000 |
parents | c2d53bd30ab8 |
children | 93edc04f3a10 |
comparison
equal
deleted
inserted
replaced
33:251e8904d6c2 | 34:9935e1c928de |
---|---|
127 int id = load_result.getInt(1); | 127 int id = load_result.getInt(1); |
128 long ttl = load_result.getLong(3); | 128 long ttl = load_result.getLong(3); |
129 | 129 |
130 if (!load_result.wasNull()) { // real time to life | 130 if (!load_result.wasNull()) { // real time to life |
131 long last_access = load_result.getTimestamp(2).getTime(); | 131 long last_access = load_result.getTimestamp(2).getTime(); |
132 if (last_access + ttl > System.currentTimeMillis()) { | 132 if (last_access + ttl < System.currentTimeMillis()) { |
133 artifactOutdated(id); | 133 artifactOutdated(id); |
134 return null; | 134 return null; |
135 } | 135 } |
136 } | 136 } |
137 | 137 |