diff --git a/Ceph/Script/cephDiskPerf.pl b/Ceph/Script/cephDiskPerf.pl
index 2af1a4e08639025b395a7d1f932cfda9881f1a33..8ecf81c95713cd1c5a9fe1e736cfa6863ac02c94 100755
--- a/Ceph/Script/cephDiskPerf.pl
+++ b/Ceph/Script/cephDiskPerf.pl
@@ -235,6 +235,7 @@ if ($selectSizeOrDev) {
 	next if $aKey >= $selectMax;
 	foreach my $elem (sort {$a<=> $b} @{$dataSizeH{$aKey}}) {
 	    next if ($thisHost && not exists $osdThisHost{$elem});
+	    next if (not defined $dataHash{$elem}{$perfType});
 	    print "PerfType;ush: OSD=$elem size=$aKey lat=".$dataHash{$elem}{$perfType}."\n" if (defined $opt_debug);
 	    push (@latArray, $dataHash{$elem}{$perfType});
 	    $count++;
@@ -251,6 +252,7 @@ if ($selectSizeOrDev) {
 	next unless $aKey =~ $selectSize;
 	foreach my $elem (sort {$a<=> $b} @{$dataTypeH{$aKey}}) {
 	    next if ($thisHost && not exists $osdThisHost{$elem});
+	    next if (not defined $dataHash{$elem}{$perfType});
 	    print "Push: OSD=$elem size=$aKey lat=".$dataHash{$elem}{$perfType}."\n" if (defined $opt_debug);
 	    push (@latArray, $dataHash{$elem}{$perfType});
 	    $count++;