Title: SF.net SVN: mrbs:[2441] mrbs/branches/flexible_day_end/web/functions_table.inc
- Revision
- 2441
- Author
- cimorrison
- Date
- 2012-09-26 16:31:53 +0000 (Wed, 26 Sep 2012)
Log Message
Disabled checking for invalid slot times when using periods
Modified Paths
Diff
Modified: mrbs/branches/flexible_day_end/web/functions_table.inc (2440 => 2441)
--- mrbs/branches/flexible_day_end/web/functions_table.inc 2012-09-26 16:27:18 UTC (rev 2440)
+++ mrbs/branches/flexible_day_end/web/functions_table.inc 2012-09-26 16:31:53 UTC (rev 2441)
@@ -735,7 +735,7 @@
// If we know that there's a transition into DST then some of the slots are
// going to be invalid. Knowing whether or not there are possibly invalid slots
// saves us bothering to do the detailed calculations of which slots are invalid.
- $is_possibly_invalid = cross_dst($am7, $pm7) < 0;
+ $is_possibly_invalid = !$enable_periods && cross_dst($am7, $pm7) < 0;
// We want to build an array containing all the data we want to show
// and then spit it out.
@@ -1020,7 +1020,7 @@
$morningstarts_minutes = 0;
}
- if( $enable_periods )
+ if ($enable_periods)
{
$resolution = 60;
$morningstarts = 12;
@@ -1048,7 +1048,7 @@
// If we know that there's a transition into DST then some of the slots are
// going to be invalid. Knowing whether or not there are possibly invalid slots
// saves us bothering to do the detailed calculations of which slots are invalid.
- $is_possibly_invalid[$j] = cross_dst($am7[$j], $pm7[$j]) < 0;
+ $is_possibly_invalid[$j] = !$enable_periods && cross_dst($am7[$j], $pm7[$j]) < 0;
}
unset($j); // Just so that we pick up any accidental attempt to use it later
------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits