X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=df.c;h=7fb319e0ba866746d7e223a4114b0f4f986dc17e;hp=1356db26b75c8a734bab932146ae64e28de4386d;hb=HEAD;hpb=46cbddf465bd66ba1d5c4bcc780ae0d65abd7f73 diff --git a/df.c b/df.c index 1356db2..7fb319e 100644 --- a/df.c +++ b/df.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2008-2010 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* SPDX-License-Identifier: GPL-2.0 */ #include #include #include @@ -18,7 +14,7 @@ int get_disk_space(const char *path, struct disk_space *result) { - /* using floats allows to not care about integer overflows */ + /* With floats we don't need to care about integer overflows. */ float total_blocks, available_blocks, blocksize; float total_inodes, available_inodes; @@ -42,7 +38,7 @@ int get_disk_space(const char *path, struct disk_space *result) void log_disk_space(struct disk_space *ds) { - DSS_INFO_LOG("free: %uM/%uM (%u%%), %u%% inodes unused\n", + DSS_INFO_LOG(("free: %uM/%uM (%u%%), %u%% inodes unused\n", ds->free_mb, ds->total_mb, ds->percent_free, - ds->percent_free_inodes); + ds->percent_free_inodes)); }