From 7b18b50ee736c108701e95f3e81bdab699bf687e Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 17 May 2010 13:06:06 +0000 Subject: [PATCH] When number of sync servers equals zero, set sync result to success. Patch from arte42.ripe in issue #7. --- NEWS | 3 +++ ykval-verify.php | 1 + 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index fac8863..d790129 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ * Fix undefined warnings, issue #8. + * When number of sync servers equals zero, set sync result to success. + Patch from arte42.ripe in issue #7. + * Add files COPYING and AUTHORS. * Version 2.4 released 2010-03-16 diff --git a/ykval-verify.php b/ykval-verify.php index eae7fc9..cdf4c6c 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -270,6 +270,7 @@ if ($req_answers>0) { $sl_success_rate=floor(100.0 * $nr_valid_answers / $nr_servers); } else { + $syncres=true; $nr_answers=0; $nr_valid_answers=0; $sl_success_rate=0;