Commit Graph

68 Commits

Author SHA1 Message Date
9dcbd2a48e [修复] 更新依赖, 修复龙架构无法正常编译的问题
Some checks failed
Build Go binaries / build (push) Has been cancelled
2024-09-13 15:08:35 +08:00
Anatol Pomozov
93fe0cab2e smart.go: switch to simpler ReadGenericAttributes() api
...to get the device temperature. This API abstracts differences between
different device interfaces (SATA vs NVMe vs ...)
2022-09-17 12:57:15 -07:00
Anatol Pomozov
3518c5262f Adjust nvme temperature from Kelvins to Celsius
NVMe devices report the temperature in Kelvins. Adjust it to Celsius like
for the rest of devices.
2022-07-15 11:02:27 -07:00
rare-magma
d7232aacb7 use single map, improve logic and logging 2022-06-19 22:11:56 +02:00
rare-magma
e96355d0b8 optimize device opening / closing 2022-06-18 18:55:38 +02:00
rare-magma
cd44aab61f handle smart errors, use ParseAsTemperature() 2022-06-15 23:01:53 +02:00
rare-magma
3c148a4d97 add error handling, simplify attribute value assignment, remove redundant name for smart.go 2022-06-14 00:28:37 +02:00
rare-magma
3704569b81 use defer to close smart stream 2022-06-08 18:37:41 +02:00
rare-magma
7f90fef354 close smart stream after reading temperature 2022-06-07 22:25:17 +02:00
rare-magma
6a979718dc use log for error instead of fmt 2022-06-07 20:43:04 +02:00
rare-magma
98c69b7dac improve and simplify disk type switch 2022-06-07 20:31:53 +02:00
rare-magma
b89c1dd748 add disk temperatures via smart.go / ghw 2022-06-06 21:18:59 +02:00
Akbar Rifai
7cb35f7f78 Ignore gopsutil host warnings 2022-05-13 19:48:12 +07:00
Quan Tong
e0165a2283 Fixes test on darwin 2022-03-26 15:08:44 +07:00
Sean E. Russell
f21a461346 Fixed target directory for man page; removes the homebrew trigger in release workflow -- gotop is in core. 2022-02-15 11:53:47 -06:00
Sean E. Russell
70d96bd2c2 Temporarily replace David's goopt with my patched version that fixes the dash issue. 2022-02-10 09:24:50 -06:00
Sean E. Russell
66047ad64c Fixes #158, adding a man page. This replaces the flags library in the process. It also changes some of the new no- flags. 2022-02-09 13:18:39 -06:00
Sean E. Russell
bda9b394d0 Mostly TODOs, but adds command to build Darwin/ARM 2021-07-20 09:31:42 -05:00
Sean E. Russell
a1dc3a0b1c Remote extension was ignoring config file values. 2021-07-17 13:19:30 -05:00
Sean E. Russell
162ed50189 Merge branch 'go1.16' 2021-05-03 11:43:13 -05:00
Sean E. Russell
ff2e7e2235 Fixes cross-platform building (func update shadowing), removes gotop-builder trigger. 2021-03-05 16:28:53 -06:00
Sean E. Russell
efcb0e9d2a Gets the NVidia extension options working, including marshalling. 2021-03-04 16:23:04 -06:00
Sean E. Russell
a44ced4bba Bring extensions under the umbrella.
Bring extensions under the umbrella.
2021-03-02 03:17:53 -06:00
Sean E. Russell
a59ad35ed5 Fixes #166, duplicate key in de_DE 2021-02-15 10:02:36 -06:00
Sean E. Russell
5a063376b0 Merge branch 'master' into go1.16 2021-02-03 15:49:06 -06:00
Sean E. Russell
0373b9b8d6 Fixes #152, missing thermal device on FreeBSD reported as error, when it isn't. 2021-02-03 15:24:56 -06:00
Sean E. Russell
e5bf9851ff Go 1.16: embed and io/fs 2021-02-03 14:27:46 -06:00
Sean E. Russell
7b19606acc Replace jdkeke142 lingo with fork; using replace in go.mod breaks go get. 2021-02-03 12:28:46 -06:00
Sean E. Russell
12257812ab Fixes #6, no temperatures shown on Raspberry Pi. 2021-01-27 09:06:09 -06:00
Sean E. Russell
af20668cb5 strings.TrimSuffix() is some 7x faster than a call to Index() plus a slice, and we can remove a call to Contains() in the bargain. 2021-01-26 16:16:48 -06:00
Sean E. Russell
3d00d349c6 Fixes #130. Any warning or error from gopsutil was preventing any temps from being displayed, even if some had useful data. 2020-11-30 10:35:24 -06:00
Sean E. Russell
c5a8d0f32f Merge branch 'master' of github.com:xxxserxxx/gotop
Re-implements doc fixes and updates static data go:generate
2020-11-23 15:14:57 -06:00
Sean E. Russell
daf5916fde Resolves merge conflicts 2020-11-23 14:58:32 -06:00
Sean E. Russell
fa9357d1ed Closes #32. Average is really average, over time. Boldify the AVRG label. Remove spurious sync lock. 2020-07-25 07:28:23 -05:00
Sean E. Russell
9b176e678e Work-around for bug shirou/gopsutil#849, addressing #135 2020-06-26 11:50:15 -05:00
Sean E. Russell
23364aa754 More strings moved to translations 2020-06-20 16:47:48 -05:00
Sean E. Russell
aa828c5790 Translation files are now bundled. 2020-06-19 10:01:26 -05:00
Sean E. Russell
0b463d427f Fixme comment 2020-06-12 10:22:23 -05:00
Sean E. Russell
1181b94bd2 Closes #131, SMC GPL issue on OSX; consequently removes need to CGO in darwin. 2020-06-09 09:54:10 -05:00
Sean E. Russell
e8727c7c20 Merge branch 'master' into v4.0 2020-05-31 10:29:14 -05:00
Sean E. Russell
299b4397d1 Merge tag 'v3.5.3' 2020-05-31 10:24:29 -05:00
Sean E. Russell
30f59c43da Fixes #97 2020-05-30 05:35:27 -05:00
Sean E. Russell
11e412c29c Fixes #97
Updating the modules files for FreeBSD

log fix
2020-05-29 15:23:01 +00:00
Sean E. Russell
d7773a87b8 Merge branch 'master' into v4.0 2020-05-24 14:38:14 -05:00
Sean E. Russell
76236a0993 Documentation clean-up. 2020-05-24 13:56:25 -05:00
Sean E. Russell
d1d8ac272b Cleans up and removes the smc.c code, which was forcing a license dependency and has since been replaced. 2020-05-19 14:03:06 -05:00
Sean E. Russell
6807f54e80 Closes #36 -- switch to MIT license. 2020-05-19 13:49:19 -05:00
Sean E. Russell
c05b3478ca Merge branch 'master' into v4.0 2020-05-08 15:51:14 -05:00
Sean E. Russell
b0e1e9a20a FIXMEs 2020-05-06 20:00:13 -05:00
Sean E. Russell
f2c63eb1b4 Fixes #123, refresh delay on start 2020-05-01 12:41:18 -05:00