Skip to content

Commit 0ab975b

Browse files
committed
clang
1 parent 0a85418 commit 0ab975b

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Detectors/CTP/workflowScalers/include/CTPWorkflowScalers/RunManager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "BookkeepingApi/BkpClient.h"
2121
#include <InfoLogger/InfoLogger.hxx>
2222

23-
2423
using namespace o2::bkp::api;
2524
namespace o2
2625
{

Detectors/CTP/workflowScalers/src/RunManager.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,20 @@ int CTPRunManager::processMessage(std::string& topic, const std::string& message
235235
if (topic.find("soxorbit") != std::string::npos) {
236236
std::vector<std::string> tokens = o2::utils::Str::tokenize(message, ' ');
237237
int ret = 0;
238-
if(tokens.size() == 3) {
238+
if (tokens.size() == 3) {
239239
long timestamp = std::stol(tokens[0]);
240240
uint32_t runnumber = std::stoul(tokens[1]);
241241
uint32_t orbit = std::stoul(tokens[2]);
242-
ret = saveSoxOrbit(timestamp,runnumber,orbit);
243-
LOG(info) << "soxorbit: " << timestamp << " " << runnumber << " " << orbit;
242+
ret = saveSoxOrbit(timestamp, runnumber, orbit);
243+
LOG(info) << "soxorbit: " << timestamp << " " << runnumber << " " << orbit;
244244
std::string logmessage;
245-
if(ret) {
245+
if (ret) {
246246
logmessage = "Failed to update CCDB with SOX orbit.";
247247
} else {
248248
logmessage = "CCDB updated with SOX orbit.";
249249
}
250250
int rlog = mInfoLogger.log(logmessage.c_str());
251-
if(rlog) {
251+
if (rlog) {
252252
LOG(warn) << "Writing to infologger failed.";
253253
}
254254
} else {
@@ -260,19 +260,19 @@ int CTPRunManager::processMessage(std::string& topic, const std::string& message
260260
if (topic.find("orbitreset") != std::string::npos) {
261261
std::vector<std::string> tokens = o2::utils::Str::tokenize(message, ' ');
262262
int ret = 0;
263-
if(tokens.size() == 1) {
263+
if (tokens.size() == 1) {
264264
long timestamp = std::stol(tokens[0]);
265265
ret = saveOrbitReset(timestamp);
266266
LOG(info) << "orbitreset: " << timestamp;
267267
std::string logmessage;
268-
if(ret) {
268+
if (ret) {
269269
logmessage = "Failed to update CCDB with orbitreset.";
270270
return 1;
271271
} else {
272272
logmessage = "CCDB updated with orbitreset.";
273273
}
274274
int rlog = mInfoLogger.log(logmessage.c_str());
275-
if(rlog) {
275+
if (rlog) {
276276
LOG(warn) << "Writing to infologger failed.";
277277
}
278278
} else {

Detectors/CTP/workflowScalers/src/ctpCCDBManager.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int ctpCCDBManager::saveSoxOrbit(uint32_t runNumber, uint32_t soxOrbit, long tim
122122
vect.push_back(timestamp);
123123
vect.push_back((uint64_t)runNumber);
124124
vect.push_back((uint64_t)soxOrbit);
125-
long tmin = timestamp/1000;
125+
long tmin = timestamp / 1000;
126126
long tmax = tmin + 381928219;
127127
o2::ccdb::CcdbApi api;
128128
map<string, string> metadata; // can be empty
@@ -152,7 +152,7 @@ int ctpCCDBManager::saveOrbitReset(long timeStamp)
152152
LOG(warn) << "Received timestamp = 0 , using current time:" << timeStamp;
153153
}
154154
vect.push_back(timeStamp);
155-
long tmin = timeStamp/1000;
155+
long tmin = timeStamp / 1000;
156156
long tmax = tmin + 381928219;
157157
o2::ccdb::CcdbApi api;
158158
map<string, string> metadata; // can be empty

0 commit comments

Comments
 (0)