Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: shirou/gopsutil
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.26.5
Choose a base ref
...
head repository: shirou/gopsutil
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.26.6
Choose a head ref
  • 8 commits
  • 9 files changed
  • 4 contributors

Commits on Apr 30, 2026

  1. fix(sensors/darwin): parse sp78 temperatures instead of returning 0.0

    The Intel macOS SMC returns temperature readings in sp78 format (signed
    7.8 fixed-point: high byte = signed integer degrees, low byte = fractional
    part in 1/256 increments). The previous code detected this format
    correctly but then unconditionally returned 0.0 for it.
    
    This caused all `TemperaturesWithContext` results on Intel Macs to report
    0.0°C for every sensor — even though `NewSMC()` succeeded, the IOKit
    connection was open, and the keys were being read successfully.
    
    This patch parses the two-byte response according to the sp78 spec.
    
    Verified on Mac mini 2018 (Intel Core i5-8500B, T2 chip) running macOS
    15.7.5 (Sequoia):
    
      Before:
        TC0P: 0.0°C
        TM0P: 0.0°C
        TW0P: 0.0°C
        (all 21 keys returned 0.0)
    
      After:
        TC0P: 60.3°C  (CPU 0 Proximity)
        TM0P: 57.6°C  (Memory Slots Proximity)
        TW0P: 49.6°C  (Wireless Module)
        (other keys correctly return 0 on this hardware — they are not present
        on the T2 platform; values match `osx-cpu-temp` output of 59.7°C)
    
    Affected platforms: all `darwin && !arm64` builds (Intel Macs).
    
    Note that Apple Silicon Macs use a different sensor backend
    (sensors_darwin_arm64.go) and are not affected by this bug.
    drutsan
    drutsan committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    28add59 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2026

  1. Configuration menu
    Copy the full SHA
    0dff2e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2026

  1. [cpu][linux]: Add support for CPU clusters in lscpu tests

    The lscpu tool can print various fields for CPU Clusters, and no Socket
    field. Adapt the code for that kind of output, seen on an ARM64 CI
    system.
    
    See util-linux/sys-utils/lscpu.c:print_summary_cputype().
    guillemj committed Jun 12, 2026
    Configuration menu
    Copy the full SHA
    7098e80 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2026

  1. [mem]: fix OpenBSD virtual memory on -current

    VirtualMemory() on OpenBSD reads the vfs.generic.bcachestat sysctl into
    the generated Bcachestats struct and rejects the result when the kernel
    returns fewer bytes than sizeOfBcachestats:
    
        error getting virtual memory info: short syscall ret 104 bytes
    
    OpenBSD removed the buffer cache "flipper" in kernel commit ff03df9b11f
    ("Remove the buffer flipper", 2026-06-10), which deletes the dmapages,
    highpages, highflips, highflops and dmaflips fields from struct
    bcachestats (sys/sys/mount.h). struct bcachestats is now 13 int64_t
    fields = 104 bytes on every architecture.
    
    https://marc.info/?l=openbsd-cvs&m=178104984860610&w=2
    
    Our generated per-arch files still expected the larger struct (0x78 on
    amd64, 0x90 on the others), so the length guard tripped and mem metrics
    broke on -current.
    
    Regenerate the struct for all OpenBSD arches: drop the removed fields and
    set sizeOfBcachestats to 0x68 (104). Only Numbufpages (offset 8) is
    consumed, and the guard is `length < sizeOfBcachestats`, so this stays
    compatible with older OpenBSD releases that return a larger struct.
    atanas-vladimirov committed Jun 13, 2026
    Configuration menu
    Copy the full SHA
    1d3af56 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2026

  1. Merge pull request #2084 from drutsan/fix/darwin-temperature-sp78

    fix(sensors/darwin): parse sp78 temperatures instead of returning 0.0
    shirou authored Jun 20, 2026
    Configuration menu
    Copy the full SHA
    e093580 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2101 from shirou/fix/2100-disk-zfs-btrfs-partitions

    [disk][linux]: fix missiing sub volume partitions on zfs and btrfs
    shirou authored Jun 20, 2026
    Configuration menu
    Copy the full SHA
    62c57ea View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2103 from guillemj/pu/lscpu-clusters

    [cpu][linux]: Add support for CPU clusters in lscpu tests
    shirou authored Jun 20, 2026
    Configuration menu
    Copy the full SHA
    c0390a2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2104 from atanas-vladimirov/openbsd

    [mem]: fix OpenBSD virtual memory on -current
    shirou authored Jun 20, 2026
    Configuration menu
    Copy the full SHA
    50a6b05 View commit details
    Browse the repository at this point in the history
Loading