X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=bfile%2Fmfile.c;fp=bfile%2Fmfile.c;h=2f6500fc03e407ecffcdd4223477261f9f8b0596;hp=b5b125e9b2fdccf2005f238c4eb4224d5f4e7e86;hb=0af00389d43835ef54928dc22f7d34ae30f3c723;hpb=fa33f4e91645cc757624b7b237cbd4fdf5bd8d18 diff --git a/bfile/mfile.c b/bfile/mfile.c index b5b125e..2f6500f 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,5 +1,5 @@ -/* $Id: mfile.c,v 1.65 2006-05-10 08:13:17 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: mfile.c,v 1.66 2006-06-07 10:14:39 adam Exp $ + Copyright (C) 1995-2006 Index Data ApS This file is part of the Zebra server. @@ -628,9 +628,15 @@ int mf_area_directory_stat(MFile_area ma, int no, const char **directory, if (directory) *directory = d->name; if (max_bytes) - *max_bytes = d->max_bytes; + { + /* possible loss of data. But it's just statistics and lies */ + *max_bytes = (double) d->max_bytes; + } if (used_bytes) - *used_bytes = d->max_bytes - d->avail_bytes; + { + /* possible loss of data. But it's just statistics and lies */ + *used_bytes = (double) (d->max_bytes - d->avail_bytes); + } return 1; } /*