correct time loc
This commit is contained in:
@@ -33,14 +33,7 @@ func GetPlannerLongestTime(end *time.Time, planned map[tools.DataType]map[string
|
||||
}
|
||||
longestTime := float64(0)
|
||||
for _, priced := range planned[tools.PROCESSING_RESOURCE] {
|
||||
if priced.GetLocationEnd() == nil {
|
||||
continue
|
||||
}
|
||||
newS := priced.GetLocationEnd()
|
||||
if end == nil && longestTime < newS.Sub(*end).Seconds() {
|
||||
longestTime = newS.Sub(*end).Seconds()
|
||||
}
|
||||
// get the nearest start from start var
|
||||
longestTime += priced.GetExplicitDurationInS()
|
||||
}
|
||||
return longestTime
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user