amdgpu_fan 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/amdgpu_fan/cli.rb +6 -0
- data/lib/amdgpu_fan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33cbd804a68b5d6bdd6aab3270d10befb792cb376645be18ee4532c77138988a
|
|
4
|
+
data.tar.gz: 40cb211ebd4a435c63207082292dd93deab05980a4dae90d425a2257f2f1835d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf5a76d99bae79d8d6bcf7dae631f0730d31c274b7b413d185efb4a7446beaf78327442dc87be8b59070dee1a297e0efc91df57e50044e21d2de06fe9d2f2ca8
|
|
7
|
+
data.tar.gz: d016f946ed8d32123552d7bdf4b19610dc3f8f338394b49824933c8f986f506cb1985c240ecc457c6f75c3ee525a32cf2f92c38a8713421052670a1b161c800e
|
data/lib/amdgpu_fan/cli.rb
CHANGED
|
@@ -102,6 +102,8 @@ module AmdgpuFan
|
|
|
102
102
|
def watch(seconds = 1)
|
|
103
103
|
return puts 'Seconds must be from 1 to 600' unless (1..600).cover?(seconds.to_i)
|
|
104
104
|
|
|
105
|
+
$stdout.sync = true
|
|
106
|
+
|
|
105
107
|
puts "Watching #{amdgpu_service.name} every #{seconds} second(s)...",
|
|
106
108
|
' <Press Ctrl-C to exit>'
|
|
107
109
|
|
|
@@ -127,6 +129,8 @@ module AmdgpuFan
|
|
|
127
129
|
Watch min, max, average, and current stats.
|
|
128
130
|
DOC
|
|
129
131
|
def watch_avg
|
|
132
|
+
$stdout.sync = true
|
|
133
|
+
|
|
130
134
|
puts "Watching #{amdgpu_service.name} min, max and averges since #{Time.now}...",
|
|
131
135
|
' <Press Ctrl-C to exit>',
|
|
132
136
|
"\n\n\n\n\n"
|
|
@@ -157,6 +161,8 @@ module AmdgpuFan
|
|
|
157
161
|
def watch_csv(seconds = 1)
|
|
158
162
|
return puts 'Seconds must be from 1 to 600' unless (1..600).cover?(seconds.to_i)
|
|
159
163
|
|
|
164
|
+
$stdout.sync = true
|
|
165
|
+
|
|
160
166
|
puts 'Timestamp,Core Clock (Mhz),Memory Clock (Mhz),Fan speed (rpm),' \
|
|
161
167
|
'Load (%),Power (Watts),Temp (°C)'
|
|
162
168
|
|
data/lib/amdgpu_fan/version.rb
CHANGED