Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
e3ee9112
Commit
e3ee9112
authored
Mar 12, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.38
parent
f428f2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
install_mysql.sh
distros/debian12/install_mysql.sh
+1
-1
04_measure_duration_and_echo.sh
functions/04_measure_duration_and_echo.sh
+6
-6
No files found.
distros/debian12/install_mysql.sh
View file @
e3ee9112
...
...
@@ -3,7 +3,7 @@
# Install and configure SQL Server (MySQL or MariaDB)
#---------------------------------------------------------------------
InstallSQLServer
()
{
local
START_TIME
=
$(
date
+%s
.%N
)
local
START_TIME
=
$(
date
+%s
)
if
[
$CFG_SQLSERVER
==
"MySQL"
]
;
then
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing MySQL
${
NC
}
\n
"
...
...
functions/04_measure_duration_and_echo.sh
View file @
e3ee9112
...
...
@@ -19,13 +19,13 @@ MeasureTimeDuration() {
if
[
-z
"
$1
"
]
;
then
echo
"-Parameter #1 is zero length."
# Or no parameter passed.
else
# Kiszámítjuk az eltelt időt nanoszekundumos pontossággal
END_TIME
=
$(
date
+%s.%N
)
ELAPSED_TIME
=
$(
echo
"
$END_TIME
-
$1
"
| bc
)
CURRENT_TIME
=
$(
date
+%s
)
START_TIME_SEC
=
${
1
%.*
}
# Percek és másodpercek kiszámítása
MINUTES
=
$(
echo
"scale=0;
$ELAPSED_TIME
/60"
| bc
)
SECONDS
=
$(
echo
"scale=1;
$ELAPSED_TIME
-(
$MINUTES
*60)"
| bc
)
ELAPSED_TIME
=
$((
$CURRENT_TIME
-
$START_TIME_SEC
))
MINUTES
=
$((
$ELAPSED_TIME
/
60
))
SECONDS
=
$((
$ELAPSED_TIME
%
60
))
echo
-n
-e
"
$IDENTATION_LVL_0
${
green
}
Completed ON
${
NC
}
"
echo
-e
":
${
red
}
$MINUTES
min
$SECONDS
sec
${
NC
}
"
...
...
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