fix error

This commit is contained in:
chiu 2020-05-19 23:24:00 +08:00
parent 23c6753646
commit 79bf7d9694
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class Property
sdata = stime_tp.wday*10000 + stime_tp.hour*100 + stime_tp.minute
edata = etime_tp.wday*10000 + etime_tp.hour*100 + etime_tp.minute
end
if (b_sdata <= sdata && b_edata >= sdata) || (b_sdata >= sdata && b_edata <= edata) || (b_sdata <= edata && b_edata >= edata)
if (sdata <= b_sdata && edata >= b_sdata) || (sdata >= b_sdata && edata <= b_edata) || (sdata <= b_edata && edata >= b_edata)
available = false
end
stime_tp = stime_tp + d_step