睡眠时间转分钟

This commit is contained in:
13038267101 2022-08-13 09:07:29 +08:00
parent 3ba86cc88d
commit 0ff688a3cf
1 changed files with 3 additions and 3 deletions

View File

@ -1744,12 +1744,12 @@ int hg_scanner::setting_setsleeptime(int sn, void* data)
}
if (val == sleeptime_)
return SCANNER_ERR_OK;
int ret = set_sleep_time(val);
int mintosec = val * 60;
int ret = set_sleep_time(mintosec);
if (ret == SCANNER_ERR_OK)
sleeptime_ = val;
VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "set sleeptime from '%s' to '%s' = %s\n", is_sleep_time(sleeptime_).c_str()
VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "set sleeptime from (%s)min to (%s)min = %s\n", is_sleep_time(sleeptime_).c_str()
, (char*)data, hg_scanner_err_name(ret));
return ret;
}