[pve-devel] [PATCH manager] ceph: correctly parse 'pg dump' output

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Oct 10 12:03:35 CEST 2017


Reported-By: Waschbüsch IT-Services GmbH <service at waschbuesch.it>
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 PVE/API2/Ceph.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index e9211325..f89b7bfe 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -123,7 +123,7 @@ __PACKAGE__->register_method ({
 		$new->{total_space} = ($stat->{kb} || 1) * 1024;
 		$new->{bytes_used} = ($stat->{kb_used} || 0) * 1024;
 		$new->{percent_used} = ($new->{bytes_used}*100)/$new->{total_space};
-		if (my $d = $stat->{fs_perf_stat}) {
+		if (my $d = $stat->{perf_stat}) {
 		    $new->{commit_latency_ms} = $d->{commit_latency_ms};
 		    $new->{apply_latency_ms} = $d->{apply_latency_ms};
 		}
-- 
2.14.1




More information about the pve-devel mailing list