hicklemr / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 1 forks source link

Settings file miscounted zeros for refresh rate #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Lines 55-57:
echo "<select name='setrefresh' id='setrefresh'>\n";
foreach (array(0=>"Off",2000=>"2 secs",5000=>"5 secs",10000=>"10 
secs",20000=>"20 secs",30000=>"30 secs",60000=>"1 min",300000=>"5 
mins",60000=>"10 mins") as $ms=>$txt) {
   echo "<option value=$ms ".($_SESSION['refresh']==$ms ? "selected" : "").">$txt</option>\n";
}

Has 60000 being 10 mins and 60000 being 1 min.

This makes the dropdown go from 30 secs to 10 mins to 5 mins (ignoring 1 min).

Add in an extra zero to make it 600 seconds and everything works as it should.

Original issue reported on code.google.com by mediadae...@gmail.com on 30 Dec 2011 at 2:56

GoogleCodeExporter commented 8 years ago
will be fixed in next release - thanks for the report.

Original comment by lemonbe...@gmail.com on 30 Dec 2011 at 8:57

GoogleCodeExporter commented 8 years ago

Original comment by lemonbe...@gmail.com on 27 Feb 2014 at 7:32