diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-26 13:51:31 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-26 12:51:31 +0300 |
| commit | 6a631744d9c80ff9a1a9f4b278bc0337ecdb494e (patch) | |
| tree | 3acf1f505751d997b1b7482823eacabcb79a03f3 /frontend/src/utils/Time.ts | |
| parent | fix/frontend: tablet view logout button (#286) (diff) | |
| download | lphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.tar.gz lphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.tar.bz2 lphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.zip | |
chore/frontend: semicolon linting (#287)
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/utils/Time.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/utils/Time.ts b/frontend/src/utils/Time.ts index 9844e0c..5e3d99b 100644 --- a/frontend/src/utils/Time.ts +++ b/frontend/src/utils/Time.ts | |||
| @@ -30,11 +30,11 @@ export function time_ago(date: Date) { | |||
| 30 | }; | 30 | }; |
| 31 | 31 | ||
| 32 | export function ticks_to_time(ticks: number) { | 32 | export function ticks_to_time(ticks: number) { |
| 33 | let seconds = Math.floor(ticks / 60) | 33 | let seconds = Math.floor(ticks / 60); |
| 34 | let minutes = Math.floor(seconds / 60) | 34 | let minutes = Math.floor(seconds / 60); |
| 35 | const hours = Math.floor(minutes / 60) | 35 | const hours = Math.floor(minutes / 60); |
| 36 | 36 | ||
| 37 | const milliseconds = Math.floor((ticks % 60) * 1000 / 60) | 37 | const milliseconds = Math.floor((ticks % 60) * 1000 / 60); |
| 38 | seconds = seconds % 60; | 38 | seconds = seconds % 60; |
| 39 | minutes = minutes % 60; | 39 | minutes = minutes % 60; |
| 40 | 40 | ||