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

screepers / screeps-profiler / 67
86%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2017 01:40PM UTC
Jobs 2
Files 1
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
67

Pull #30

travis-ci

web-flow
Fix tick calculation: Output will always be 2 less

Simply put, a previous refactor incorrectly altered the way the elapsed ticks was calculated.

Previously, if given the following:
```
//Game.time === 120;
Game.profiler.profile(5)
Memory.profiler.enabledTick = 120; // correct
Memory.profiler.disableTick = 124; // correct
```

Then after 5 ticks, the calculation would be:
```
const endTick = Math.min(Memory.profiler.disableTick || Game.time, Game.time); // 124
const startTick = Memory.profiler.enabledTick + 1; // 121
const elapsedTicks = endTick - startTick; // 3
```

Given the above, elapsedTicks would be 3, which is 2 less than what the original input of 5 was.
Pull Request #30: Fix tick calculation: Output will always be 2 less

49 of 85 branches covered (57.65%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

107 of 148 relevant lines covered (72.3%)

459.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 67.1 14 Oct 2017 01:41PM UTC 0
66.95
Travis Job 67.1
2 67.2 14 Oct 2017 01:40PM UTC 0
66.95
Travis Job 67.2
Source Files on build 67
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #67
  • Pull Request #30
  • PR Base - master (#60)
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

© 2026 Coveralls, Inc