From 68505ed16301fac8d869e3dc6a23738df9830635 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 26 Dec 2023 18:25:03 +0800 Subject: [PATCH] update --- src/service/disinfection_ctl_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/disinfection_ctl_service.cpp b/src/service/disinfection_ctl_service.cpp index b912806..0b86349 100644 --- a/src/service/disinfection_ctl_service.cpp +++ b/src/service/disinfection_ctl_service.cpp @@ -363,14 +363,14 @@ void DisinfectionCtrlService::printfDisinfectionContextResult() { auto dio = m_deviceIoControlService; auto ds = GET_SERVICE(DeviceStateService); m_context.m_endtp_str = getTime(); - int totaltime = zsteady_clock().elapsedTimeS(m_context.m_starttp); + int totaltime = zsteady_clock().elapsedTimeS(m_context.m_starttp) / 60; dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n")); dio->printerPrintf(fmt::format(" 全思美特\n")); dio->printerPrintf(fmt::format("操作人 {}\n", ds->getLoginUid())); dio->printerPrintf(fmt::format("开始时间 {}\n", m_context.m_starttp_str)); dio->printerPrintf(fmt::format("结束时间 {}\n", m_context.m_endtp_str)); - dio->printerPrintf(fmt::format("总耗时 {}:{}\n", totaltime / 60, totaltime % 60)); + dio->printerPrintf(fmt::format("总耗时 {}:{}\n", totaltime / 60, totaltime % 60)); dio->printerPrintf(fmt::format("目标LOG {}\n", (int)m_context.m_targetLoglevel)); dio->printerPrintf(fmt::format("实际LOG {}\n", (int)m_context.m_nowLoglevel)); dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n"));