Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不删除录像文件功能是怎么生效的? #24

Open
lexang opened this issue May 8, 2024 · 2 comments
Open

不删除录像文件功能是怎么生效的? #24

lexang opened this issue May 8, 2024 · 2 comments

Comments

@lexang
Copy link

lexang commented May 8, 2024

不删除录像文件功能是怎么生效的?

@lexang
Copy link
Author

lexang commented May 8, 2024

  if (userSettings.getRecordTempPath() == null) {
        return;
    }

    // 清理任务临时文件
    int recordTempDay = userSettings.getRecordTempDay();
    Date lastTempDate = new Date();
    Calendar lastTempCalendar = Calendar.getInstance();
    lastTempCalendar.setTime(lastTempDate);
    lastTempCalendar.add(Calendar.DAY_OF_MONTH, -recordTempDay);        配置文件注释说不配置RecordTempDay就不生效就不会删除录像文件   这里没问题吗?

@crazybb-0808
Copy link

你好,我也遇到了相同的问题,感觉这个配置项不起作用,我没有配置这个参数,但实际系统还是到第7天就删除以前的录像,也就是说不管配置录像保存多少天,都是7天以前的都给删除了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants