Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
agent
Commits
f5e1f3ff
There was a problem fetching the pipeline summary.
Commit
f5e1f3ff
authored
7 years ago
by
André Machado
Browse files
Options
Downloads
Patches
Plain Diff
SCRUM#86
- Formating code
parent
4f77df84
No related branches found
No related tags found
2 merge requests
!103
Merge dev -> master
,
!52
Issue/86
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
src/agent/get_date.cpp
+1
-1
1 addition, 1 deletion
src/agent/get_date.cpp
src/agent/network_bandwidth.cpp
+1
-1
1 addition, 1 deletion
src/agent/network_bandwidth.cpp
with
3 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
f5e1f3ff
...
@@ -13,7 +13,7 @@ pattern:
...
@@ -13,7 +13,7 @@ pattern:
-
apt-get update && apt-get install -y git python
-
apt-get update && apt-get install -y git python
-
git clone https://github.com/google/styleguide
-
git clone https://github.com/google/styleguide
-
cd styleguide/cpplint
-
cd styleguide/cpplint
-
./cpplint.py --filter=-whitespace/blank_line,-build/include_what_you_use ../../src/agent/!(jsoncpp).cpp
- ./cpplint.py --filter=-whitespace/blank_line,-build/include_what_you_use
,-readability/casting
../../src/agent/!(jsoncpp).cpp
compile
:
compile
:
stage
:
build
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
src/agent/get_date.cpp
+
1
−
1
View file @
f5e1f3ff
...
@@ -32,7 +32,7 @@ std::string get_date() {
...
@@ -32,7 +32,7 @@ std::string get_date() {
time
(
&
rawtime
);
time
(
&
rawtime
);
#ifdef __unix__
#ifdef __unix__
localtime_r
(
&
rawtime
,
timeinfo
);
localtime_r
(
&
rawtime
,
timeinfo
);
#endif //__unix__
#endif //
__unix__
// YYYY-MM-DD
// YYYY-MM-DD
strftime
(
buffer
,
20
,
"%Y-%m-%d"
,
timeinfo
);
strftime
(
buffer
,
20
,
"%Y-%m-%d"
,
timeinfo
);
...
...
This diff is collapsed.
Click to expand it.
src/agent/network_bandwidth.cpp
+
1
−
1
View file @
f5e1f3ff
...
@@ -223,7 +223,7 @@ Json::Value get_net_bandwidth() {
...
@@ -223,7 +223,7 @@ Json::Value get_net_bandwidth() {
getline
(
time_file
,
str
);
getline
(
time_file
,
str
);
time_file
.
close
();
time_file
.
close
();
net_band
[
"data_net"
][
"bytes_received"
]
=
b_rec
-
b_rec_allt
;
net_band
[
"data_net"
][
"bytes_received"
]
=
b_rec
-
b_rec_allt
;
net_band
[
"data_net"
][
"packets_received"
]
=
pack_rec
-
pack_rec_allt
;
net_band
[
"data_net"
][
"packets_received"
]
=
pack_rec
-
pack_rec_allt
;
net_band
[
"data_net"
][
"bytes_transmitted"
]
=
b_tr
-
b_tr_allt
;
net_band
[
"data_net"
][
"bytes_transmitted"
]
=
b_tr
-
b_tr_allt
;
net_band
[
"data_net"
][
"packets_tranmitted"
]
=
pack_tr
-
pack_tr_allt
;
net_band
[
"data_net"
][
"packets_tranmitted"
]
=
pack_tr
-
pack_tr_allt
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment