projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added zebra_get_version
[idzebra-moved-to-github.git]
/
index
/
recstat.c
diff --git
a/index/recstat.c
b/index/recstat.c
index
b14f5a2
..
21d62ba
100644
(file)
--- a/
index/recstat.c
+++ b/
index/recstat.c
@@
-1,6
+1,6
@@
-/* $Id: recstat.c,v 1.9 2004-08-04 08:35:23 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: recstat.c,v 1.17 2007-01-15 15:10:17 adam Exp $
+ Copyright (C) 1995-2007
+ Index Data ApS
This file is part of the Zebra server.
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
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 <assert.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <string.h>
#include <fcntl.h>
-#ifndef WIN32
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "recindxp.h"
#include <unistd.h>
#endif
#include "recindxp.h"
@@
-35,15
+35,15
@@
void rec_prstat (Records records)
int i;
zint total_bytes = 0;
int i;
zint total_bytes = 0;
- logf (LOG_LOG,
+ yaz_log (YLOG_LOG,
"Total records %8" ZINT_FORMAT0,
records->head.no_records);
for (i = 0; i< REC_BLOCK_TYPES; i++)
{
"Total records %8" ZINT_FORMAT0,
records->head.no_records);
for (i = 0; i< REC_BLOCK_TYPES; i++)
{
- logf (LOG_LOG, "Record blocks of size " ZINT_FORMAT,
+ yaz_log (YLOG_LOG, "Record blocks of size "ZINT_FORMAT,
records->head.block_size[i]);
records->head.block_size[i]);
- logf (LOG_LOG,
+ 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,
" Used/Total/Bytes used "
ZINT_FORMAT "/" ZINT_FORMAT "/" ZINT_FORMAT,
records->head.block_used[i], records->head.block_last[i]-1,
@@
-51,10
+51,18
@@
void rec_prstat (Records records)
total_bytes +=
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,
+ yaz_log (YLOG_LOG,
"Total size of record index in bytes %8" ZINT_FORMAT0,
records->head.total_bytes);
"Total size of record index in bytes %8" ZINT_FORMAT0,
records->head.total_bytes);
- logf (LOG_LOG,
+ yaz_log (YLOG_LOG,
"Total size with overhead %8" ZINT_FORMAT0,
total_bytes);
}
"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
+ */
+