From af47aae69af266398458be904d9d349339f96dba Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 28 Dec 2013 02:28:39 +0100 Subject: fixed shift length calculation for active angels --- config/config.default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.default.php b/config/config.default.php index bd3415da..6db1441a 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -43,7 +43,7 @@ $shift_sum_formula = "SUM( (HOUR(FROM_UNIXTIME(`Shifts`.`end`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) < 6) OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`start`)) < 6) OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) <= 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) >= 6) - ))*(`Shifts`.`end` - `Shifts`.`start`)*(-2 * `ShiftEntry`.`freeloaded`) + ))*(`Shifts`.`end` - `Shifts`.`start`)*(1 - 3 * `ShiftEntry`.`freeloaded`) )"; // weigh every shift the same -- cgit v1.2.3-54-g00ecf