From: Kees Monshouwer Date: Sat, 7 Sep 2013 11:48:39 +0000 (+0200) Subject: Revert "Remove possible devision by zero (coverity fix)" X-Git-Tag: rec-3.6.0-rc1~449^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=101b5d5d1809c046e7425f8baa7ceba326e76f00;p=thirdparty%2Fpdns.git Revert "Remove possible devision by zero (coverity fix)" This reverts commit 4855a559d3d1ce7c74c2f922fc74a71889fc1987. --- diff --git a/pdns/ws.cc b/pdns/ws.cc index 20cfd73ca9..2f0ce8a5a0 100644 --- a/pdns/ws.cc +++ b/pdns/ws.cc @@ -96,13 +96,9 @@ void *StatWebServer::threadHelper(void *p) void printtable(ostringstream &ret, const string &ringname, const string &title, int limit=10) { - vector >ring=S.getRing(ringname); - if (ring.size() == 0) { - return; - } - int tot=0; int entries=0; + vector >ring=S.getRing(ringname); for(vector >::const_iterator i=ring.begin(); i!=ring.end();++i) { tot+=i->second;