mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
btrfs_subvol_usage: fix "btrfs qgroup show" output format
Switch "btrfs qgroup show" for raw output format, because by default it's human readable form and can't be read by scripts.
This commit is contained in:
parent
4ee40c8227
commit
735689d47a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ while (my $line = <SVS>) {
|
||||||
close SVS;
|
close SVS;
|
||||||
|
|
||||||
# get sizes from quota
|
# get sizes from quota
|
||||||
open(QGS, "btrfs qgroup show @fsroot |")
|
open(QGS, "btrfs qgroup show --raw @fsroot |")
|
||||||
or die("Failed to run 'btrfs qgroup show': " . $!);
|
or die("Failed to run 'btrfs qgroup show': " . $!);
|
||||||
while (my $line = <QGS>) {
|
while (my $line = <QGS>) {
|
||||||
chomp $line;
|
chomp $line;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue