Skip to content

Commit

Permalink
Bugfix: round free space number, in output of dfree
Browse files Browse the repository at this point in the history
Fixes #235
  • Loading branch information
gboudreau committed Jun 19, 2020
1 parent aadb2a9 commit 8594efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greyhole-dfree.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
chdir($argv[1]);
$options = SharesConfig::getShareOptions(getcwd());
if ($options) {
$total_free_space /= $options['num_copies'];
$total_free_space = (int) round($total_free_space / $options['num_copies']);
}

echo "$total_space $total_free_space 1024\n";
Expand Down

0 comments on commit 8594efc

Please sign in to comment.