Index: openacs-4/packages/xotcl-request-monitor/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/index.adp,v diff -u -r1.8 -r1.8.2.1 --- openacs-4/packages/xotcl-request-monitor/www/index.adp 7 Jul 2015 12:22:07 -0000 1.8 +++ openacs-4/packages/xotcl-request-monitor/www/index.adp 1 Feb 2016 16:52:48 -0000 1.8.2.1 @@ -1,6 +1,14 @@ @title;literal@ + + + + + + + + Index: openacs-4/packages/xotcl-request-monitor/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/index.tcl,v diff -u -r1.24.2.2 -r1.24.2.3 --- openacs-4/packages/xotcl-request-monitor/www/index.tcl 1 Feb 2016 12:05:32 -0000 1.24.2.2 +++ openacs-4/packages/xotcl-request-monitor/www/index.tcl 1 Feb 2016 16:52:48 -0000 1.24.2.3 @@ -4,7 +4,7 @@ @author Gustaf Neumann @cvs-id $Id$ } -query { - {jsGraph 0} + {jsGraph 1} } -properties { title:onevalue context:onevalue @@ -101,78 +101,113 @@ if {$jsGraph} { - # use javascript graphics - template::head::add_script -type text/javascript -src /resources/xotcl-request-monitor/diagram/diagram.js - # draw a graph in form of an html table of with 500 pixels + proc js_time {clock} { + set year [clock format $clock -format %Y] + set month [expr {[string trimleft [clock format $clock -format %N]] - 1}] + return "Date.UTC($year, $month, [clock format $clock -format {%d, %H, %M, %S}], 0)" + } + + set ::graphCount 0 proc graph {values label type} { + #ns_log notice "values=$values label=$label, type=$type" - switch $type { - "Second" { set delta "D.XGridDelta=10000;\n" } - "Minute" { set delta "D.XGridDelta=600000;\n" } - default { set delta ""} - } - - set max 1 - foreach v $values {if {$v>$max} {set max $v}} - set size [llength $values] if {$size<12} { set values [concat [split [string repeat 0 [expr {12-$size}]] ""] $values] set size [llength $values] } - set end [clock format [clock seconds] -format "%Y,%m,%d,%H,%M,%S"] - set begin [clock format [clock scan "-$size $type"] -format "%Y,%m,%d,%H,%M,%S"] - regsub -all {,0} $begin , begin - regsub -all {,0} $end , end - #ns_log Notice "begin: $begin, end: $end, $size $type" + set begin [clock scan "-$size $type"] + set interval [clock scan "1 $type" -base 0] + set graphID "graph[incr ::graphCount]" - set diagram [subst {\n" - return "
\n$diagram\n
" + set diagram [subst { + + }] + + #ns_log notice diagram=$diagram + return [subst { +
+ $diagram + }] } proc counterTable {label objlist} { foreach {t l} $objlist { set trend [throttle trend $t] - append text [subst { + append text [subst { \n" } + #ns_log notice "counterTable $label $objlist ->\n$text" return $text } Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/area_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/arrow_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/bar_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/blank.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/box_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/browser_support.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/diagram.js'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/diagram_dom.js'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/diagram_nav.js'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/diagram_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/dot_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/download.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/dynamic_example.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/evalsafe.js'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/evalsave.js'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/fx_display.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/fx_input.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/fx_main.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/iframe_example.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/index.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/introduction.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/line_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/linreg_display.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/linreg_input.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/linreg_main.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/logarithmic_scale.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/menu.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/php_and_asp.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/php_and_asp_menu.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/php_and_asp_versions.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/pie_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/pixel_object.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/relative_position.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/showline.htm'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/static_example.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/xotcl-request-monitor/www/resources/diagram/zoom_line.html'. Fisheye: No comparison available. Pass `N' to diff?
Active Users:@active_user_string;noquote@#acs-subsite.parameters#
[graph $trend "$label per $l" $l] @@ -193,6 +228,7 @@ } append text "
Max
\n