]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script: fix check_osd_request_latency
authorSage Weil <sage@newdream.net>
Wed, 18 Feb 2009 19:53:51 +0000 (11:53 -0800)
committerSage Weil <sage@newdream.net>
Wed, 18 Feb 2009 19:53:51 +0000 (11:53 -0800)
src/script/check_osd_request_latency.pl

index 63f750fbc3ac04b8a102a77f001709302f3d20c0..910b9906c667e443d24d3f86762e073232c730a3 100755 (executable)
@@ -17,14 +17,14 @@ while (<>) {
     chomp;
     my ($stamp) = /^\S+ (\S+) /;
 
-    my ($who,$tid) = /osd\d+ <.. (\D+\d+) \S+ \S+ osd_op\(\S+:(\d+)/;
+    my ($who,$tid) = /osd\d+ <.. (\D+\d+) \S+ \S+ osd_op\((\S+)/;
     if (defined $tid) {
        my $req = "$who:$tid";
        $r{$req} = $stamp unless exists $r{$req};
        next;
     }
 
-    my ($who,$tid) = /\d+ -- \S+ osd\d+ --> (\D+\d+) \S+ \S+ osd_op_reply\((\d+)/;
+    my ($who,$tid) = /\d+ -- \S+ osd\d+ --> (\D+\d+) \S+ \S+ osd_op_reply\((\S+) /;
     if (defined $tid) {
        my $req = "$who:$tid";
        if (exists $r{$req}) {