Permalink
Browse files

fix geo_loc_delay milliseconds value while seconds expected after upg…

…rade to v0.0.22
  • Loading branch information...
hypatia2 committed Apr 11, 2016
1 parent 5edaf65 commit 1aacba605c59bddd1b838a49dacb85753a6d28c6
Showing with 10 additions and 2 deletions.
  1. +10 −2 fruho/model.tcl
@@ -279,7 +279,7 @@ proc ::model::load {} {
if {[catch {
ini2model [model INIFILE]
::model::load-bootstrap
# load profiles from individual directories and update model
set profiles [lmap d [glob -directory [model PROFILEDIR] -nocomplain -type d *] {file tail $d}]
# sanitize directory names
@@ -288,14 +288,22 @@ proc ::model::load {} {
fatal "Profile directory name should be alphanumeric string in [model PROFILEDIR]"
}
}
foreach p $profiles {
set inifile [file join [model PROFILEDIR] $p config.ini]
if {[file exists $inifile]} {
dict set ::model::Profiles $p [inicfg load $inifile]
}
}
#puts stderr "MODEL PROFILES: \n[::inicfg::dict-pretty $::model::Profiles]"
# in case of upgrade to fruho v0.0.22 fix geo_loc_delay to convert from ms to seconds
if {$::model::geo_loc_delay > 100} {
set ::model::geo_loc_delay [expr {$::model::geo_loc_delay / 1000}]
}
} out err]} {
puts stderr $out

0 comments on commit 1aacba6

Please sign in to comment.