Files
zoneminder/web/includes
Isaac Connor 112a5da852 fix: match single-server ServerId=0 in Server::ReadStats
06801955a bound $this->Id() directly in the stats lookup. On a
single-server install the Server object's Id() is empty/undef and
zmstats.pl writes the rows under ServerId=0 (ZM_SERVER_ID ? ZM_SERVER_ID
: 0), so the query matched nothing and CpuLoad/load reported as -1.

Coerce a falsy id to 0 so the reader mirrors the writer; a real
(multi-server) id still passes through unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-07-27 08:12:51 -04:00
..