Skip to content

Commit

Permalink
Rename variable int to intValue
Browse files Browse the repository at this point in the history
  • Loading branch information
John P. Bloch committed May 12, 2014
1 parent de90a61 commit 0a756e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions live-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
return ('000000' + parseInt(int, 10)).slice(-6).substr(0, 5);
}

function int_to_timestamp(int) {
int %= 86400;
function int_to_timestamp(intValue) {
intValue %= 86400;
var timestamp = [];
timestamp[0] = ('00' + Math.floor(int / 3600)).slice(-2);
timestamp[1] = ('00' + Math.floor((int % 3600) / 60)).slice(-2);
timestamp[2] = ('00' + (int % 60)).slice(-2);
timestamp[0] = ('00' + Math.floor(intValue / 3600)).slice(-2);
timestamp[1] = ('00' + Math.floor((intValue % 3600) / 60)).slice(-2);
timestamp[2] = ('00' + (intValue % 60)).slice(-2);
return timestamp.join('');
}

Expand Down

0 comments on commit 0a756e0

Please sign in to comment.