• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / ark-tools / 13609263776

01 Mar 2025 10:08PM CUT coverage: 100.0%. First build
13609263776

Pull #1

github

web-flow
Merge 737eee7f4 into 3e01f444a
Pull Request #1: Add App and required resources

343 of 343 new or added lines in 7 files covered. (100.0%)

343 of 343 relevant lines covered (100.0%)

219.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/util.go
1
package app
2

3
import "time"
4

5
// nextTime calculates the next intended update.
6
func nextTime(last time.Time, fps float64) time.Time {
213✔
7
        if fps <= 0 {
214✔
8
                return last
1✔
9
        }
1✔
10
        dt := time.Second / time.Duration(fps)
212✔
11
        now := time.Now()
212✔
12
        if now.After(last.Add(200 * time.Millisecond)) {
237✔
13
                return now.Add(-10 * time.Millisecond)
25✔
14
        }
25✔
15
        return last.Add(dt)
187✔
16
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc