all TCL's clock clicks always with the -milliseconds option. The TCL manual explicitly states that without this switch the return result is …
Show more
all TCL's clock clicks always with the -milliseconds option. The TCL manualexplicitly states that without this switch the return result is platformdependant. The OpenACS code works at the millisecond granulartiy and silentlyassumes that 1 millisecond equals 1000 clicks which is not necessarily true.I used this shell script to automatize the replacing:#!/bin/bashfor file in `grep -lsr "\[clock clicks\]" /web/openacs-head/packages/ `; do echo "repairing $file" sed "s/\[clock clicks\]/\[clock clicks -milliseconds\]/g" $file > fout mv fout $filedoneAnd then grepped forgrep -r "expr.*clock clicks" /web/openacs-head/packages/to manually remove the divisions by 1000.
Show less