-/*
- * Copyright (C) 2008-2010 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* SPDX-License-Identifier: GPL-2.0 */
#include <sys/statvfs.h>
#include <stdio.h>
#include <assert.h>
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;