@@ -178,9 +178,7 @@ static std::string_view secondsToString(const std::chrono::seconds sec) {
178
178
" UPower::secondsToString(). seconds: \" {0}\" , minutes: \" {1}\" , hours: \" {2}\" , \
179
179
days: \" {3}\" , strRet: \" {4}\" " ,
180
180
sec.count (), min.count (), hrs.count (), ds.count (), strRet);
181
- return fmt::format (fmt::runtime (strRet),
182
- fmt::arg (" D" , ds.count ()),
183
- fmt::arg (" H" , hrs.count ()),
181
+ return fmt::format (fmt::runtime (strRet), fmt::arg (" D" , ds.count ()), fmt::arg (" H" , hrs.count ()),
184
182
fmt::arg (" M" , min.count ()));
185
183
}
186
184
@@ -279,7 +277,7 @@ void UPower::deviceAdded_cb(UpClient *client, UpDevice *device, gpointer data) {
279
277
}
280
278
281
279
void UPower::deviceRemoved_cb (UpClient *client, const gchar *objectPath, gpointer data) {
282
- UPower * up{static_cast <UPower *>(data)};
280
+ UPower *up{static_cast <UPower *>(data)};
283
281
up->removeDevice (objectPath);
284
282
up->setDisplayDevice ();
285
283
// Update the widget
@@ -419,7 +417,7 @@ const Glib::ustring UPower::getText(const upDevice_output &upDevice_, const std:
419
417
fmt::runtime (format),
420
418
fmt::arg (" percentage" , std::to_string ((int )std::round (upDevice_.percentage )) + ' %' ),
421
419
fmt::arg (" time" , timeStr),
422
- fmt::arg (" temperature" , std::format (" {:-.2g}C" ,upDevice_.temperature )),
420
+ fmt::arg (" temperature" , std::format (" {:-.2g}C" , upDevice_.temperature )),
423
421
fmt::arg (" model" , upDevice_.model ), fmt::arg (" native-path" , upDevice_.nativePath ));
424
422
}
425
423
0 commit comments