Commit 112a5da
committed
fix: match single-server ServerId=0 in Server::ReadStats
0680195 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)1 parent 819a211 commit 112a5da
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments