Changeset 18797 for trunk/FACT++/www/schedule
- Timestamp:
- 03/31/17 15:34:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/schedule/save.php
r18520 r18797 181 181 $save = $t; 182 182 $id = 0; 183 $exclusive = 0; 183 184 } 184 185 … … 189 190 190 191 if ($d==FALSE) 191 die("Could not parse time '".$t."' with date_parse ");192 die("Could not parse time '".$t."' with date_parse."); 192 193 193 194 // Check all but the last task in a measurement whether … … 196 197 { 197 198 if ($measurements[$m]['fIsUnlimited']==true) 198 die("Unlimited task '".$measurements[$m]['fMeasurementTypeName']."' detected before end of observation \n[".$last."|".($id-1)."]");199 die("Unlimited task '".$measurements[$m]['fMeasurementTypeName']."' detected before end of observation.\n[".$last."|".($id-1)."]"); 199 200 } 200 201 201 202 if ($last>$t) 202 die("Times not sequential \n[".$last."|".$t."]");203 die("Times not sequential.\n[".$last."|".$t."]"); 203 204 204 205 $last = $t; … … 207 208 $s = $row[2]; // source 208 209 $v = $row[3]; // value 210 211 // Check if measurement is exclusive 212 if ($measurements[$m]['fIsExclusive']==true || $exclusive>0) 213 { 214 if ($id>0) 215 die("Task '".$measurements[$m]['fMeasurementTypeName']."' must be scheduled exclusively.\n[".$t."|".$id."]"); 216 217 $exclusive = $m+1; 218 } 209 219 210 220 // Check if task need source or must not have a source
Note:
See TracChangeset
for help on using the changeset viewer.