GUI support for link delays up to 274 seconds (netem maximum for Linux

3.2.0-60-generic)
(Boeing r1829)
This commit is contained in:
ahrenholz 2014-03-18 17:55:18 +00:00
parent 481daf4c0d
commit d48af2afae

View file

@ -2799,8 +2799,9 @@ proc popupConfigDialog { c } {
$spinbox $wi.delay.value -justify right -width 10 \ $spinbox $wi.delay.value -justify right -width 10 \
-validate focus -invalidcommand "focusAndFlash %W" -validate focus -invalidcommand "focusAndFlash %W"
$wi.delay.value insert 0 [getLinkDelay $target] $wi.delay.value insert 0 [getLinkDelay $target]
# 274 seconds is maximum netem delay for Linux 3.2.0-60-generic kernel
$wi.delay.value configure \ $wi.delay.value configure \
-validatecommand {checkIntRange %P 0 10000000} \ -validatecommand {checkIntRange %P 0 274000000} \
-from 0 -to 10000000 -increment 5 -from 0 -to 10000000 -increment 5
pack $wi.delay.value $wi.delay.label -side right pack $wi.delay.value $wi.delay.label -side right
pack $wi.delay -side top -anchor e pack $wi.delay -side top -anchor e