Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
revamp namespace parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Mar 22, 2011
1 parent 4f3375b commit f3b747f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/daikon/monitor.rb
Expand Up @@ -78,9 +78,8 @@ def push(split_command)
end end


def incr_namespace(key) def incr_namespace(key)
namespace, has_namespace = key.split(/(?::|-)/, 2) if marker = key =~ /:|-/
if has_namespace data["namespaces"][key[0...marker]] += 1
data["namespaces"][namespace] += 1
else else
incr_global_namespace incr_global_namespace
end end
Expand Down

0 comments on commit f3b747f

Please sign in to comment.