diff --git a/etc/websocket-demo.conf b/etc/websocket-demo.conf index 5cd902fd0..1b9c69731 100644 --- a/etc/websocket-demo.conf +++ b/etc/websocket-demo.conf @@ -31,17 +31,22 @@ logging = { } nodes = { - sig_1 = { + sig = { type = "signal", signal = "mixed", - values = 6, - rate = 50, + values = 5, + rate = 0.0001 , hooks = ( { type = "stats" } ) }, - ws_1 = { + stats = { + type = "stats", + node = "sig", + rate = 0.0001, + }, + ws_sig = { type = "websocket", description = "Demo Channel", series = ( @@ -54,21 +59,14 @@ nodes = { { type = "stats" } ) }, - stats_1 = { - type = "stats", - node = "sig_1", - rate = 20, - + ws_stats = { + type = "websocket", + description = "Statistics", series = ( - { label = "Sent [#msgs]" }, - { label = "Received [#msgs]" }, - { label = "Invalid [#msgs]" }, - { label = "Skipped [#msgs]" }, - { label = "Dropped [#msgs]" }, - { label = "Overruns [#msgs]" }, - { label = "One-way delay [sec]" }, - { label = "Send rate [samples/sec]" }, - { label = "Receive rate [samples/sec]" } + { label = "" } + ) + hooks = ( + { type = "stats" } ) } }; @@ -77,7 +75,14 @@ nodes = { paths = ( { - in = "sig_1", - out = "ws_1" + in = "sig", + out = "ws_sig" + }, + { + in = "stats.data[31-35]", # OWD + out = "ws_stats", + hooks = ( + { type = "print" } + ) } );