Skip to content

Conversation

@CarterLi
Copy link
Member

@CarterLi CarterLi commented Jul 3, 2025

No description provided.

CarterLi and others added 30 commits June 20, 2025 15:02
To improve visibility on white background
@CarterLi CarterLi requested a review from Copilot July 3, 2025 02:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for Solaris/OpenIndiana, refines CPU usage measurement across platforms, improves macOS media detection, and updates logos and OS detections for various distributions.

  • Introduce Solaris-specific detection modules (PhysicalDisk, Sound, GPU, BIOS)
  • Improve CPU usage calculations on Linux, BSD & Windows using native APIs
  • Refresh many logos to use default foreground color and add Xubuntu

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/util/windows/perflib_.h Define PERF_MULTI_INSTANCES for Windows perflib usage
src/modules/cpuusage/cpuusage.c Cap CPU percent to 100% on Windows
src/logo/image/*.c Fix trailing semicolons removal in FF_LIBRARY macros
src/logo/ascii/xubuntu.txt Add Xubuntu ASCII logo
src/detection/*.sunos.c Add Solaris/OpenIndiana detection for Sound, BIOS, Disk
src/detection/cpuusage/*.{c,windows.c} Switch to perflib on Win10+, include IRQ/softirq times
src/detection/os/os_linux.c Use ffStrbufSetStatic for static string assignments
CMakeLists.txt Update version to 2.47.0, adjust ENABLE_PULSE/PCIACCESS
CHANGELOG.md, debian/*, README.md, ci.yml Bump versions and document new features/fixes
Comments suppressed due to low confidence (3)

src/logo/image/image.c:711

  • Missing semicolon after macro invocation; this will cause a compile error. Add a trailing ;.
    FF_LIBRARY_LOAD_SYMBOL(imData->library, MagickCoreGenesis, FF_LOGO_IMAGE_RESULT_INIT_ERROR)

src/logo/image/im7.c:22

  • Macro invocation is missing a semicolon at the end, leading to a syntax error. Append ;.
    FF_LIBRARY_LOAD_SYMBOL_ADDRESS(imageMagick, ffResizeImage, ResizeImage, FF_LOGO_IMAGE_RESULT_INIT_ERROR)

src/common/io/io.h:22

  • [nitpick] Increasing buffer size impacts stack usage only if declared on stack; since this is static define for heap reads it's acceptable but verify that large reads don't exceed memory constraints in low-memory environments.
    #define PROC_FILE_BUFFSIZ (32 * 1024)

@CarterLi CarterLi merged commit 8b40a81 into master Jul 3, 2025
43 checks passed
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

Successfully merging this pull request may close these issues.

1 participant