Put sanity check on decay_time to prevent updates with no time
diff --git a/cgminer.c b/cgminer.c
index 6dd2226..bd27071 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2424,6 +2424,8 @@ void decay_time(double *f, double fadd, double fsecs, double interval)
{
double ftotal, fprop;
+ if (fsecs <= 0)
+ return;
fprop = 1.0 - 1 / (exp(fsecs / interval));
ftotal = 1.0 + fprop;
*f += (fadd / fsecs * fprop);