睡眠时间转分钟
This commit is contained in:
parent
3ba86cc88d
commit
0ff688a3cf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue