MCPcopy Create free account
hub / github.com/efogdev/mpris-timer / CalculateFps

Function CalculateFps

internal/core/const.go:87–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87func CalculateFps() int {
88 fps := baseFPS
89 if IsGnome {
90 fps = gnomeFPS
91 }
92 if Overrides.LowFPS && fps > 1 {
93 log.Println("1 fps mode requested")
94 fps = 1
95 }
96
97 return int(math.Max(float64(fps), 1))
98}
99
100func bool2int(b bool) int {
101 if b {

Callers 1

NewTimerPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected