X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-bw.cpp;h=5b7b4a2fa109f2f3537a7224486bd38ed7e1d95a;hb=e571596972971da916ded37860ec0c84a804adc9;hp=25f5658f376e25b758ee3f3445163c02ba4ad0fa;hpb=2bab0500e690612c044b1d9f87a0f03bc1640743;p=yazproxy-moved-to-github.git diff --git a/src/yaz-bw.cpp b/src/yaz-bw.cpp index 25f5658..5b7b4a2 100644 --- a/src/yaz-bw.cpp +++ b/src/yaz-bw.cpp @@ -1,7 +1,7 @@ -/* $Id: yaz-bw.cpp,v 1.6 2004-12-13 20:52:33 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 @@ -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 + */ +