Skip to content

Commit 0dbc516

Browse files
Merge pull request #5 from NETWAYS/chore/fixes_sensors
fix indentation in sensor example
2 parents d512268 + 47ccf6a commit 0dbc516

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

cmd/sensors.go

+12-11
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ thresholds respecting the sensor type and the respective specialities`,
1818
Example: `./check_system_basics sensors
1919
[OK] - states: ok=6
2020
\_ [OK] acpitz
21-
\_ [OK] acpitz_temp1: Ok - 46C
21+
\_ [OK] acpitz_temp1: Ok - 48C
2222
\_ [OK] BAT1
23-
\_ [OK] BAT1_in0: Ok - 17.363V
24-
\_ [OK] BAT1_curr1: Ok - 0A
23+
\_ [OK] BAT1_in0: Ok - 17.544V
24+
\_ [OK] BAT1_curr1: Ok - 0A
2525
\_ [OK] nvme
26-
\_ [OK] Composite: Ok - 40C
26+
\_ [OK] Composite: Ok - 37C
2727
\_ [OK] ACAD
2828
\_ [OK] coretemp
29-
\_ [OK] Package id 0: Ok - 46C
30-
\_ [OK] Core 0: Ok - 44C
31-
\_ [OK] Core 1: Ok - 42C
32-
\_ [OK] Core 2: Ok - 43C
33-
\_ [OK] Core 3: Ok - 45C
29+
\_ [OK] Package id 0: Ok - 48C
30+
\_ [OK] Core 0: Ok - 47C
31+
\_ [OK] Core 1: Ok - 46C
32+
\_ [OK] Core 2: Ok - 46C
33+
\_ [OK] Core 3: Ok - 45C
3434
\_ [OK] iwlwifi_1
35-
\_ [OK] iwlwifi_1_temp1: Ok - 51C
36-
|acpitz_temp1=46C;;~:210 BAT1_in0=17.363V BAT1_curr1=0A Composite=40C;~:83;-5:87 'Package id 0'=46C;~:100;~:100 'Core 0'=44C;~:100;~:100 'Core 1'=42C;~:100;~:100 'Core 2'=43C;~:100;~:100 'Core 3'=45C;~:100;~:100 iwlwifi_1_temp1=51C`,
35+
\_ [OK] iwlwifi_1_temp1: Ok - 47C
36+
|acpitz_temp1=48C;;~:210 BAT1_in0=17.544V BAT1_curr1=0A Composite=37C;~:83;-5:87 'Package id 0'=48C;~:100;~:100 'Core 0'=47C;~:100;~:100 'Core 1'=46C;~:100;~:100 'Core 2'=46C;~:100;~:100 'Core 3'=45C;~:100;~:100 iwlwifi_1_temp1=47C
37+
`,
3738
Run: func(cmd *cobra.Command, args []string) {
3839
devices, err := sensors.GetDefaultDevices()
3940
if err != nil {

0 commit comments

Comments
 (0)