mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-25 07:34:58 -04:00
Use -n 1 for a single JSON sample instead of -s 1, which sets a 1 ms refresh period and runs until interrupted on current intel_gpu_top. Fixes #12205 Signed-off-by: leilei3167 <imleilei123@gmail.com>
13 lines
287 B
Go
13 lines
287 B
Go
package xsysinfo
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("intelGPUTopArgs", func() {
|
|
It("requests one JSON sample instead of an infinite 1ms refresh loop", func() {
|
|
Expect(intelGPUTopArgs()).To(Equal([]string{"-J", "-n", "1"}))
|
|
})
|
|
})
|