From 01d1ae66768c3df79f2db23caa15762068693eec Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 11 Jul 2008 07:05:08 +0000 Subject: [PATCH] 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 --- source/de/anomic/yacy/yacyCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.java index 9da0e64a1..b4999e592 100644 --- a/source/de/anomic/yacy/yacyCore.java +++ b/source/de/anomic/yacy/yacyCore.java @@ -105,7 +105,7 @@ public class yacyCore { public static int yacyTime() { // 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) {