X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-bw.cpp;h=5b7b4a2fa109f2f3537a7224486bd38ed7e1d95a;hb=e571596972971da916ded37860ec0c84a804adc9;hp=dea22e0ca7b8f5e29115fd7de423b83efeca90a0;hpb=c176a974d0fbd65b6dd10369209eb1ddabf41aa7;p=yazproxy-moved-to-github.git diff --git a/src/yaz-bw.cpp b/src/yaz-bw.cpp index dea22e0..5b7b4a2 100644 --- a/src/yaz-bw.cpp +++ b/src/yaz-bw.cpp @@ -1,7 +1,7 @@ -/* $Id: yaz-bw.cpp,v 1.5 2004-11-30 21:10:45 adam Exp $ - Copyright (c) 1998-2004, Index Data. +/* $Id: yaz-bw.cpp,v 1.8 2006-03-30 10:32:42 adam Exp $ + Copyright (c) 1998-2006, Index Data. -This file is part of the yaz-proxy. +This file is part of the yazproxy. 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 @@ -20,7 +20,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA */ #include -#include +#include #include Yaz_bw::Yaz_bw(int sz) @@ -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 + */ +