Index: openacs-4/packages/acs-tcl/tcl/whos-online-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/whos-online-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-tcl/tcl/whos-online-procs.tcl 8 Jan 2004 09:53:48 -0000 1.3 +++ openacs-4/packages/acs-tcl/tcl/whos-online-procs.tcl 10 Jan 2007 21:22:12 -0000 1.4 @@ -34,7 +34,7 @@ array set last_hit [nsv_array get last_hit] set onliners_out [list] set interval 1 - set oldtime [expr [ns_time] - [interval]] + set oldtime [expr {[ns_time] - [interval]}] for { set search [array startsearch last_hit] } { [array anymore last_hit $search] } {} { set user [array nextelement last_hit $search] @@ -91,7 +91,7 @@ @author Peter Marklund } { if { [nsv_exists last_hit $user_id] } { - return [expr [ns_time] - [nsv_get last_hit $user_id]] + return [expr {[ns_time] - [nsv_get last_hit $user_id]}] } else { return {} } @@ -104,7 +104,7 @@ @author Peter Marklund } { if { [nsv_exists last_hit $user_id] } { - return [expr [ns_time] - [nsv_get first_hit $user_id]] + return [expr {[ns_time] - [nsv_get first_hit $user_id]}] } else { return {} } @@ -136,7 +136,7 @@ } { array set last_hit [nsv_array get last_hit] set onliners [list] - set oldtime [expr [ns_time] - [interval]] + set oldtime [expr {[ns_time] - [interval]}] for { set search [array startsearch last_hit] } { [array anymore last_hit $search] } {} { set user_id [array nextelement last_hit $search]