patch for negative time in case that the time of the computer is changed

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4984 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent bac758bc5a
commit 01d1ae6676

@ -105,7 +105,7 @@ public class yacyCore {
public static int yacyTime() { public static int yacyTime() {
// the time since startup of yacy in seconds // the time since startup of yacy in seconds
return (int) ((System.currentTimeMillis() - serverCore.startupTime) / 1000); return Math.max(0, (int) ((System.currentTimeMillis() - serverCore.startupTime) / 1000));
} }
public yacyCore(plasmaSwitchboard sb) { public yacyCore(plasmaSwitchboard sb) {

Loading…
Cancel
Save