X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-bw.cpp;h=3fe0db9e89664ca051006dd54e59a9aee7ca2ff9;hb=d9997f1b704904dc68a1c6ccf7f66f0009c59a21;hp=f33375424d872c35fbec7cd221c274845426caaa;hpb=645fcfb030d718ce708a396309fb8d69bd8d7afb;p=yazproxy-moved-to-github.git diff --git a/src/yaz-bw.cpp b/src/yaz-bw.cpp index f333754..3fe0db9 100644 --- a/src/yaz-bw.cpp +++ b/src/yaz-bw.cpp @@ -1,14 +1,14 @@ -/* $Id: yaz-bw.cpp,v 1.3 2004-04-11 12:25:01 adam Exp $ +/* $Id: yaz-bw.cpp,v 1.7 2005-06-25 15:58:33 adam Exp $ Copyright (c) 1998-2004, Index Data. This file is part of the yaz-proxy. -Zebra is free software; you can redistribute it and/or modify it under +YAZ proxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. -Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +YAZ proxy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -42,7 +42,7 @@ int Yaz_bw::get_total() int bw = 0; int i; for (i = 0; i m_size) - d = m_size; + d = m_size; while (--d >= 0) { - if (++m_ptr == m_size) - m_ptr = 0; - m_bucket[m_ptr] = 0; + if (++m_ptr == m_size) + m_ptr = 0; + m_bucket[m_ptr] = 0; } m_bucket[m_ptr] += b; m_sec = now; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +