X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.c;h=2f6500fc03e407ecffcdd4223477261f9f8b0596;hb=0002d3ccff37e5598553683e95714ca5711f05e8;hp=7a437c0b56e8f3fcebcbd61fbc097c8fe3d96949;hpb=30bb91a2915de98455a8f7a5af5c087239f22203;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.c b/bfile/mfile.c index 7a437c0..2f6500f 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,5 +1,5 @@ -/* $Id: mfile.c,v 1.64 2006-05-05 09:14:02 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,8 +628,22 @@ 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; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +