Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jlib
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
jlib
Commits
d6419f5b
Commit
d6419f5b
authored
3 weeks ago
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gcc warning
parent
eba1a32c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
chrono_wrapper.h
jlib/util/chrono_wrapper.h
+2
-2
upload.sh
upload.sh
+14
-0
No files found.
jlib/util/chrono_wrapper.h
View file @
d6419f5b
...
...
@@ -103,7 +103,7 @@ inline std::wstring timePointToWString(const std::chrono::system_clock::time_poi
inline
std
::
chrono
::
system_clock
::
time_point
timePointFromString
(
const
std
::
string
&
s
)
{
std
::
tm
tm
=
{
0
};
std
::
tm
tm
=
{};
std
::
istringstream
ss
(
s
);
ss
>>
std
::
get_time
(
&
tm
,
"%Y-%m-%d %H:%M:%S"
);
return
std
::
chrono
::
system_clock
::
from_time_t
(
std
::
mktime
(
&
tm
));
...
...
@@ -111,7 +111,7 @@ inline std::chrono::system_clock::time_point timePointFromString(const std::stri
inline
std
::
chrono
::
system_clock
::
time_point
timePointFromWString
(
const
std
::
wstring
&
s
)
{
std
::
tm
tm
=
{
0
};
std
::
tm
tm
=
{};
std
::
wistringstream
ss
(
s
);
ss
>>
std
::
get_time
(
&
tm
,
L"%Y-%m-%d %H:%M:%S"
);
return
std
::
chrono
::
system_clock
::
from_time_t
(
std
::
mktime
(
&
tm
));
...
...
This diff is collapsed.
Click to expand it.
upload.sh
0 → 100644
View file @
d6419f5b
#!/bin/bash
set
-e
DST_HOST
=
"192.168.50.107"
IGNORES
=
"qt/Debug qt/Release"
rm
-f
jlib.zip
cd
jlib
zip
-r
../jlib.zip
*
-x
$IGNORES
cd
..
scp jlib.zip root@
$DST_HOST
:/root/projects/jlib
rm
-f
jlib.zip
ssh root@
$DST_HOST
"cd /root/projects/jlib && unzip -o jlib.zip -d jlib && rm -f jlib.zip"
This diff is collapsed.
Click to expand it.
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