From: Adam Dickmeiss Date: Tue, 30 Mar 2004 16:51:32 +0000 (+0000) Subject: File moved from src to proxy X-Git-Tag: YAZPP.0.8~31 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=c7e62c0cd5f11c28cf19e72078cc9e3d149b5668;p=yazpp-moved-to-github.git File moved from src to proxy --- diff --git a/src/yaz-bw.cpp b/src/yaz-bw.cpp deleted file mode 100644 index 73d69e4..0000000 --- a/src/yaz-bw.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2000-2003, Index Data. - * See the file LICENSE for details. - * - * $Id: yaz-bw.cpp,v 1.1 2003-10-01 13:13:51 adam Exp $ - */ - -#include -#include -#include - - -Yaz_bw::Yaz_bw(int sz) -{ - m_sec = 0; - m_size = sz; - m_bucket = new int[m_size]; - m_ptr = 0; -} - -Yaz_bw::~Yaz_bw() -{ - delete [] m_bucket; -} - -int Yaz_bw::get_total() -{ - add_bytes(0); - int bw = 0; - int i; - for (i = 0; i m_size) - d = m_size; - while (--d >= 0) - { - if (++m_ptr == m_size) - m_ptr = 0; - m_bucket[m_ptr] = 0; - } - m_bucket[m_ptr] += b; - m_sec = now; -} -