17 lines
396 B
Go
17 lines
396 B
Go
package domain
|
|
|
|
// DisplayExperiencedPeople applies the project's configured display floor to
|
|
// the actual number of tickets issued for the current business day.
|
|
func DisplayExperiencedPeople(start int, actual int64) int64 {
|
|
if start < 0 {
|
|
start = 0
|
|
}
|
|
if actual < 0 {
|
|
actual = 0
|
|
}
|
|
if displayedStart := int64(start); displayedStart > actual {
|
|
return displayedStart
|
|
}
|
|
return actual
|
|
}
|