X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-bw.cpp;h=4c99d76d84f35eed9140b4ba0e1d509ebad9914d;hp=dea22e0ca7b8f5e29115fd7de423b83efeca90a0;hb=7fa984c171c65d05d34775c4533808793b2109cb;hpb=c176a974d0fbd65b6dd10369209eb1ddabf41aa7 diff --git a/src/yaz-bw.cpp b/src/yaz-bw.cpp index dea22e0..4c99d76 100644 --- a/src/yaz-bw.cpp +++ b/src/yaz-bw.cpp @@ -1,7 +1,5 @@ -/* $Id: yaz-bw.cpp,v 1.5 2004-11-30 21:10:45 adam Exp $ - Copyright (c) 1998-2004, Index Data. - -This file is part of the yaz-proxy. +/* This file is part of YAZ proxy + Copyright (C) 1998-2009 Index Data 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 @@ -14,13 +12,12 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with YAZ proxy; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. - */ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #include -#include +#include #include Yaz_bw::Yaz_bw(int sz) @@ -42,7 +39,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 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +