X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frecstat.c;h=fdfdee395e0c61607c08109ce86e8f716e09c144;hb=c33ea56e3771c3b80ba66ef8fda3a09cad171ebb;hp=59e76ce0ce0412d4854bc9e2fe12eea950317f1f;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/index/recstat.c b/index/recstat.c index 59e76ce..fdfdee3 100644 --- a/index/recstat.c +++ b/index/recstat.c @@ -1,6 +1,6 @@ -/* $Id: recstat.c,v 1.8 2002-08-02 19:26:55 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: recstat.c,v 1.16 2006-08-14 10:40:15 adam Exp $ + Copyright (C) 1995-2006 + Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ 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 Zebra; see the file LICENSE.zebra. 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 + */ @@ -25,7 +25,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include #include -#ifndef WIN32 +#if HAVE_UNISTD_H #include #endif #include "recindxp.h" @@ -33,26 +33,36 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA void rec_prstat (Records records) { int i; - int total_bytes = 0; + zint total_bytes = 0; - logf (LOG_LOG, - "Total records %8d", + yaz_log (YLOG_LOG, + "Total records %8" ZINT_FORMAT0, records->head.no_records); for (i = 0; i< REC_BLOCK_TYPES; i++) { - logf (LOG_LOG, "Record blocks of size %d", + yaz_log (YLOG_LOG, "Record blocks of size "ZINT_FORMAT, records->head.block_size[i]); - logf (LOG_LOG, - " Used/Total/Bytes used %d/%d/%d", + yaz_log (YLOG_LOG, + " Used/Total/Bytes used " + ZINT_FORMAT "/" ZINT_FORMAT "/" ZINT_FORMAT, records->head.block_used[i], records->head.block_last[i]-1, records->head.block_used[i] * records->head.block_size[i]); total_bytes += records->head.block_used[i] * records->head.block_size[i]; } - logf (LOG_LOG, - "Total size of record index in bytes %8d", + yaz_log (YLOG_LOG, + "Total size of record index in bytes %8" ZINT_FORMAT0, records->head.total_bytes); - logf (LOG_LOG, - "Total size with overhead %8d", total_bytes); + yaz_log (YLOG_LOG, + "Total size with overhead %8" ZINT_FORMAT0, + total_bytes); } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +