summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <seanerussell@gmail.com>2020-02-13 12:12:40 -0600
committerSean E. Russell <seanerussell@gmail.com>2020-02-13 12:12:40 -0600
commit0932e3c3d09245a4c8796ac5258a913d79c24c8d (patch)
tree245c64705240ac57bbfb99e90330f285e62459bd
parentb60451ea2de99c6c1c6d9b10e20792dd83f9b424 (diff)
parentad8060510a3fc411927e6437b93093f1f0b5880a (diff)
Merge remote-tracking branch 'howjmay/fix_typo'
-rw-r--r--.gitignore2
-rw-r--r--cmd/gotop/main.go2
-rw-r--r--widgets/temp.go4
-rw-r--r--widgets/temp_darwin.go2
-rw-r--r--widgets/temp_freebsd.go4
-rw-r--r--widgets/temp_linux.go4
-rw-r--r--widgets/temp_openbsd.go2
-rw-r--r--widgets/temp_windows.go2
8 files changed, 11 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index e310733..93afdc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
dist/
-gotop*
+gotop
# snap packaging specific
/parts/
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index c3e19c4..e31e2a8 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -81,7 +81,7 @@ Colorschemes:
MinimalMode: false,
AverageLoad: false,
PercpuLoad: false,
- TempScale: w.Celcius,
+ TempScale: w.Celsius,
Battery: false,
Statusbar: false,
NetInterface: w.NET_INTERFACE_ALL,
diff --git a/widgets/temp.go b/widgets/temp.go
index dea5430..6d49365 100644
--- a/widgets/temp.go
+++ b/widgets/temp.go
@@ -14,7 +14,7 @@ import (
type TempScale int
const (
- Celcius TempScale = 0
+ Celsius TempScale = 0
Fahrenheit = 1
Disabled = 2
)
@@ -91,7 +91,7 @@ func (self *TempWidget) Draw(buf *ui.Buffer) {
ui.NewStyle(fg),
image.Pt(self.Inner.Max.X-4, self.Inner.Min.Y+y),
)
- case Celcius:
+ case Celsius:
buf.SetString(
fmt.Sprintf("%3dC", self.Data[key]),
ui.NewStyle(fg),
diff --git a/widgets/temp_darwin.go b/widgets/temp_darwin.go
index fb845b3..d7d892c 100644
--- a/widgets/temp_darwin.go
+++ b/widgets/temp_darwin.go
@@ -64,7 +64,7 @@ func (self *TempWidget) update() {
switch self.TempScale {
case Fahrenheit:
self.Data[sensor.SensorKey] = utils.CelsiusToFahrenheit(int(sensor.Temperature))
- case Celcius:
+ case Celsius:
self.Data[sensor.SensorKey] = int(sensor.Temperature)
}
}
diff --git a/widgets/temp_freebsd.go b/widgets/temp_freebsd.go
index 5442268..035226f 100644
--- a/widgets/temp_freebsd.go
+++ b/widgets/temp_freebsd.go
@@ -58,13 +58,13 @@ func collectSensors() ([]sensorMeasurement, error) {
func (self *TempWidget) update() {
sensors, err := collectSensors()
if err != nil {
- log.Printf("error recieved from gopsutil: %v", err)
+ log.Printf("error received from gopsutil: %v", err)
}
for _, sensor := range sensors {
switch self.TempScale {
case Fahrenheit:
self.Data[sensor.name] = utils.CelsiusToFahrenheit(int(sensor.temperature))
- case Celcius:
+ case Celsius:
self.Data[sensor.name] = int(sensor.temperature)
}
}
diff --git a/widgets/temp_linux.go b/widgets/temp_linux.go
index f73426c..47b27c9 100644
--- a/widgets/temp_linux.go
+++ b/widgets/temp_linux.go
@@ -12,7 +12,7 @@ import (
func (self *TempWidget) update() {
sensors, err := psHost.SensorsTemperatures()
if err != nil {
- log.Printf("error recieved from gopsutil: %v", err)
+ log.Printf("error received from gopsutil: %v", err)
}
for _, sensor := range sensors {
// only sensors with input in their name are giving us live temp info
@@ -22,7 +22,7 @@ func (self *TempWidget) update() {
switch self.TempScale {
case Fahrenheit:
self.Data[label] = utils.CelsiusToFahrenheit(int(sensor.Temperature))
- case Celcius:
+ case Celsius:
self.Data[label] = int(sensor.Temperature)
}
}
diff --git a/widgets/temp_openbsd.go b/widgets/temp_openbsd.go
index f04657c..4606c2c 100644
--- a/widgets/temp_openbsd.go
+++ b/widgets/temp_openbsd.go
@@ -39,7 +39,7 @@ func (self *TempWidget) getTemp(mib []C.int, mlen int, snsrdev *C.struct_sensord
switch self.TempScale {
case Fahrenheit:
self.Data[key] = utils.CelsiusToFahrenheit(temp)
- case Celcius:
+ case Celsius:
self.Data[key] = temp
}
}
diff --git a/widgets/temp_windows.go b/widgets/temp_windows.go
index 4486292..71fb6f1 100644
--- a/widgets/temp_windows.go
+++ b/widgets/temp_windows.go
@@ -19,7 +19,7 @@ func (self *TempWidget) update() {
switch self.TempScale {
case Fahrenheit:
self.Data[sensor.SensorKey] = utils.CelsiusToFahrenheit(int(sensor.Temperature))
- case Celcius:
+ case Celsius:
self.Data[sensor.SensorKey] = int(sensor.Temperature)
}
}