diff --git a/projects/samskivert/src/java/com/samskivert/util/Throttle.java b/projects/samskivert/src/java/com/samskivert/util/Throttle.java index 6abab302..a73c35ae 100644 --- a/projects/samskivert/src/java/com/samskivert/util/Throttle.java +++ b/projects/samskivert/src/java/com/samskivert/util/Throttle.java @@ -117,7 +117,10 @@ public class Throttle { // if the oldest operation was performed less than _period ago, we // need to throttle - return (timeStamp - _ops[_lastOp]) < _period; + long elapsed = timeStamp - _ops[_lastOp]; + // if negative time elapsed, we must be running on windows. + // Let's just cope by not throttling. + return (elapsed >= 0 && elapsed < _period); } /**