Skip to content
Snippets Groups Projects
Commit f5e1f3ff authored by André Machado's avatar André Machado
Browse files

SCRUM#86 - Formating code

parent 4f77df84
No related branches found
No related tags found
2 merge requests!103Merge dev -> master,!52Issue/86
Pipeline #
...@@ -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
......
...@@ -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);
......
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment