Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d2d25522
Commit
d2d25522
authored
Apr 13, 2024
by
Self Denial
Browse files
Format fix
parent
23b674dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/utils/index.ts
src/lib/utils/index.ts
+3
-3
No files found.
src/lib/utils/index.ts
View file @
d2d25522
...
@@ -469,9 +469,9 @@ export const blobToFile = (blob, fileName) => {
...
@@ -469,9 +469,9 @@ export const blobToFile = (blob, fileName) => {
};
};
export
const
approximateToHumanReadable
=
(
nanoseconds
:
number
)
=>
{
export
const
approximateToHumanReadable
=
(
nanoseconds
:
number
)
=>
{
const
seconds
=
Math
.
floor
((
nanoseconds
/
1
e
+
9
)
%
60
);
const
seconds
=
Math
.
floor
((
nanoseconds
/
1
e9
)
%
60
);
const
minutes
=
Math
.
floor
((
nanoseconds
/
6
e
+
10
)
%
60
);
const
minutes
=
Math
.
floor
((
nanoseconds
/
6
e10
)
%
60
);
const
hours
=
Math
.
floor
((
nanoseconds
/
3.6
e
+
12
)
%
24
);
const
hours
=
Math
.
floor
((
nanoseconds
/
3.6e12
)
%
24
);
const
results
:
string
[]
=
[];
const
results
:
string
[]
=
[];
...
...
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