mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-30 12:30:17 +00:00
Move regex compilation from function bodies to package-level variables to avoid recompilation on each RAID array check during polling cycles. Affected regexes: - mdDeviceRe: Matches md device names in /proc/mdstat - slotRe: Matches device slot lines in mdadm --detail output - speedRe: Extracts rebuild speed from /proc/mdstat |
||
|---|---|---|
| .. | ||
| mdadm.go | ||
| mdadm_test.go | ||