Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Minor change on the CI/CD setup#4

Merged
RenanGBarreto merged 2 commits into
mainfrom
0.0.3
Jun 2, 2026
Merged

Minor change on the CI/CD setup#4
RenanGBarreto merged 2 commits into
mainfrom
0.0.3

Conversation

@RenanGBarreto

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2026 03:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the image scanning logic to avoid picking up .ffpfsc files that were modified very recently, likely to reduce the chance of processing partially-written/in-flight files.

Changes:

  • Add a minimum candidate age threshold (30 seconds) and a helper to evaluate file age using st_mtime.
  • Skip recently modified .ffpfsc files during directory scans (with a debug log message).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/mm_scan.c
Comment on lines +24 to +28
now = time(NULL);
if (now == (time_t)-1) {
mm_log_warn("SCAN", "failed to get current time while checking candidate");
return false;
}
Comment thread src/mm_scan.c
#include "mm_sha256.h"
#include "mm_util.h"

static const time_t MM_MIN_CANDIDATE_AGE_SECONDS = 30;
@RenanGBarreto RenanGBarreto merged commit ff48c8b into main Jun 2, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants