os.loadavg()
-
返回:<number[]>
¥Returns: <number[]>
返回包含 1、5 和 15 分钟平均负载的数组。
¥Returns an array containing the 1, 5, and 15 minute load averages.
平均负载是操作系统计算的系统活动量度,并表示为小数。
¥The load average is a measure of system activity calculated by the operating system and expressed as a fractional number.
平均负载是 Unix 特有的概念。在 Windows 上,返回值始终为 [0, 0, 0]
。
¥The load average is a Unix-specific concept. On Windows, the return value is
always [0, 0, 0]
.