clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I862ed296ce1f42dba7047a74540d9004ad78130c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/sessions_manager.cpp b/sessions_manager.cpp
index c18bf80..e878de1 100644
--- a/sessions_manager.cpp
+++ b/sessions_manager.cpp
@@ -62,8 +62,8 @@
objManager = std::make_unique<sdbusplus::server::manager_t>(
*getSdBus(), session::sessionManagerRootPath);
- auto objPath =
- std::string(session::sessionManagerRootPath) + "/" + channel + "/0";
+ auto objPath = std::string(session::sessionManagerRootPath) + "/" +
+ channel + "/0";
chName = channel;
setNetworkInstance();
@@ -232,8 +232,8 @@
// active idle time in seconds = 60 / overflow^3
constexpr int baseIdleMicros = 60 * 1000 * 1000;
// no +1 for the zero session here because this is just active sessions
- int sessionDivisor =
- getActiveSessionCount() - session::maxSessionCountPerChannel;
+ int sessionDivisor = getActiveSessionCount() -
+ session::maxSessionCountPerChannel;
sessionDivisor = std::max(0, sessionDivisor) + 1;
sessionDivisor = sessionDivisor * sessionDivisor * sessionDivisor;
int activeMicros = baseIdleMicros / sessionDivisor;
@@ -242,8 +242,8 @@
// setup idle time in seconds = max(3, 60 / overflow^3)
// +1 for the zero session here because size() counts that too
- int setupDivisor =
- sessionsMap.size() - (session::maxSessionCountPerChannel + 1);
+ int setupDivisor = sessionsMap.size() -
+ (session::maxSessionCountPerChannel + 1);
setupDivisor = std::max(0, setupDivisor) + 1;
setupDivisor = setupDivisor * setupDivisor * setupDivisor;
constexpr int maxSetupMicros = 3 * 1000 * 1000;