Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f5436f06
Commit
f5436f06
authored
Jun 03, 2016
by
System Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix time display with big values
parent
ce5627f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
timer_common.js
js/etersoft/timer_common.js
+5
-5
No files found.
js/etersoft/timer_common.js
View file @
f5436f06
...
...
@@ -92,11 +92,11 @@ Timer.prototype.getElapsedSeconds = function(){
// Возвращает отформатированную строку, которую можно выводить на экран
// Не изменяет состояния таймера, лишь считывает текущее значение
Timer
.
prototype
.
getFormattedString
=
function
(){
var
seconds
=
this
.
getElapsedSeconds
();
var
minutes
=
Math
.
floor
(
seconds
/
60
);
var
hours
=
Math
.
floor
(
minutes
/
60
);
var
minutes
=
minutes
-
hours
*
60
;
var
seconds
=
seconds
-
minutes
*
60
;
var
seconds
Full
=
this
.
getElapsedSeconds
();
var
minutes
Full
=
Math
.
floor
(
secondsFull
/
60
);
var
hours
=
Math
.
floor
(
minutes
Full
/
60
);
var
minutes
=
minutes
Full
-
hours
*
60
;
var
seconds
=
seconds
Full
-
minutesFull
*
60
;
if
(
seconds
<
10
)
{
seconds
=
"0"
+
seconds
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment