package m9zApi

const (
	defaultLoopCount = 10
	maxLoopCount     = 10
)

func configuredLoopCount() int {
	return scanConfigManager.GetLoopCount()
}

func monitorDisplayLoopCount() int {
	return maxLoopCount
}

func normalizeLoopCount(loopCount int) int {
	if loopCount <= 0 {
		return defaultLoopCount
	}
	if loopCount > maxLoopCount {
		return maxLoopCount
	}
	return loopCount
}
