File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ namespace ksf::comps
289289 if (!isConnected ())
290290 return 0 ;
291291
292- return static_cast <uint32_t >((ksf::millis64 () - lastSuccessConnectionTime) / static_cast <uint64_t >(KSF_ONE_SEC_MS));
292+ auto connectionTimeSeconds{(ksf::millis64 () - lastSuccessConnectionTime) / KSF_ONE_SEC_MS};
293+ return static_cast <uint32_t >(connectionTimeSeconds);
293294 }
294295}
Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ namespace ksf
240240
241241 const std::string getUptimeString ()
242242 {
243- auto uptime {millis64 () / static_cast < uint64_t >( KSF_ONE_SEC_MS) };
244- return getUptimeFromSeconds (uptime );
243+ auto uptimeSeconds {millis64 () / KSF_ONE_SEC_MS};
244+ return getUptimeFromSeconds (static_cast < uint32_t >(uptimeSeconds) );
245245 }
246246
247247 void loadCredentials (std::string& ssid, std::string& password)
You can’t perform that action at this time.
0 commit comments