Skip to content

Commit

Permalink
perf: remove bitwise operations
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 14, 2015
1 parent ec4070d commit ac50235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ unreleased
- Add weak `ETag` matching support
* perf: enable strict mode
* perf: remove argument reassignment
* perf: remove bitwise operations

2.2.1 / 2015-05-14
==================
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function createIcon(buf, maxAge) {
return {
body: buf,
headers: {
'Cache-Control': 'public, max-age=' + ~~(maxAge / 1000),
'Cache-Control': 'public, max-age=' + Math.floor(maxAge / 1000),
'ETag': etag(buf)
}
};
Expand Down

0 comments on commit ac50235

Please sign in to comment.