diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-08-07 20:58:02 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-08-07 20:58:02 +0300 |
commit | 66da89aaebbabb06ed2d9427972b674606139eed (patch) | |
tree | ab00a676810ee602b423d0e1abcbca95c81ddee8 | |
parent | c7ce464eaedce3eb6805714482cb1739f46200db (diff) |
renamed buf to buffer, renamed uiupdateFrequency to updateFrequency
-rwxr-xr-x | ui/ui.go | 8 | ||||
-rwxr-xr-x | utils/gtk.go | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -107,10 +107,10 @@ func New(endpoint, key string, width, height int) *UI { durration := time.Second * 20 // Experimental, set the timeout based on config setting, but only if the config is pressent. - uiUpdateFrequency := os.Getenv("EXPERIMENTAL_UI_UPDATE_FREQUENCY") - if uiUpdateFrequency != "" { - logger.Infof("Ui.New() - EXPERIMENTAL_UI_UPDATE_FREQUENCY is present, frequency is %s", uiUpdateFrequency) - val, err := strconv.Atoi(uiUpdateFrequency) + updateFrequency := os.Getenv("EXPERIMENTAL_UI_UPDATE_FREQUENCY") + if updateFrequency != "" { + logger.Infof("Ui.New() - EXPERIMENTAL_UI_UPDATE_FREQUENCY is present, frequency is %s", updateFrequency) + val, err := strconv.Atoi(updateFrequency) if err == nil { durration = time.Second * time.Duration(val) } else { diff --git a/utils/gtk.go b/utils/gtk.go index b92e7c2..feb9167 100755 --- a/utils/gtk.go +++ b/utils/gtk.go @@ -287,7 +287,7 @@ func ImageFromUrl(imageUrl string) (*gtk.Image, error) { } defer pixbufLoader.Close() - writeLength, writeErr := pixbufLoader.Write(buf.Bytes()) + writeLength, writeErr := pixbufLoader.Write(buffer.Bytes()) if writeErr != nil { return nil, writeErr } else if writeLength < 1 { |