Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow underscores in trace names, add colors

  • Loading branch information...
commit 075de07d98436ed6d45ba67fcbd7befc89a1d5c8 1 parent a799fdd
@eastein authored
Showing with 9 additions and 2 deletions.
  1. +8 −1 interface.html
  2. +1 −1  web.py
View
9 interface.html
@@ -51,7 +51,14 @@
var dataset = new TimeSeries();
var ts = new Boxed();
- var rgb = ['rgba(255, 0, 0, 1)', 'rgba(0, 255, 0, 1)', 'rgba(0, 0, 255, 1)', 'rgba(220, 0, 220, 1)', 'rgba(2, 183, 98, 1)']
+ var rgb = [
+ 'rgba(255, 0, 0, 1)',
+ 'rgba(0, 255, 0, 1)',
+ 'rgba(0, 0, 255, 1)',
+ 'rgba(220, 0, 220, 1)',
+ 'rgba(2, 183, 98, 1)',
+ 'rgba(98, 27, 120, 1)'
+ ]
// Every second, get the total trace
setInterval(function() {
View
2  web.py
@@ -166,7 +166,7 @@ def process_request(self, tracetype, tracename, *a):
(r"/$", InterfaceHandler),
(r"/([a-z0-9\.\-]+\.js)$", JSHandler),
(r"/trace$", TraceListHandler),
- (r"/trace/([a-z0-9\.\-]+)/([a-z0-9\.\-]+)/([0-9]+)$", TraceHandler)
+ (r"/trace/([a-z0-9\.\-_]+)/([a-z0-9\.\-_]+)/([0-9]+)$", TraceHandler)
]
sock = zmqsub.JSONZMQSub(sys.argv[1])
Please sign in to comment.
Something went wrong with that request. Please try again.