Skip to content

Commit 5d87584

Browse files
committed
Small fix to rendering
1 parent ff51298 commit 5d87584

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build:
77
docker run --rm -it\
88
-v "$(ROOT_DIR)":/usr/src/github.com/byrnedo/dockdash \
99
-w /usr/src/github.com/byrnedo/dockdash golang:1.5.1 \
10-
go get -d -v && go build -v -o build/dockdash main.go
10+
go get -d -v && go build -v -o build/dockdash
1111

1212
#cross compile 386 and amd64
1313
release:
@@ -17,7 +17,7 @@ release:
1717
-w /usr/src/github.com/byrnedo/dockdash golang:1.5.1 go get -d -v && bash -c \
1818
"for linux_arch in 386 amd64; \
1919
do \
20-
env GOOS=linux GOARCH=\$$linux_arch go build -o build/releases/linux/\$$linux_arch/dockdash main.go && \
20+
env GOOS=linux GOARCH=\$$linux_arch go build -o build/releases/linux/\$$linux_arch/dockdash && \
2121
(cd build/releases/linux/\$$linux_arch/ && zip ../../dockdash_linux_\$$linux_arch.zip dockdash); \
2222
done;"
2323

@@ -26,5 +26,5 @@ try:
2626
-v /var/run/docker.sock:/var/run/docker.sock \
2727
-v "$(ROOT_DIR)":/usr/src/github.com/byrnedo/dockdash \
2828
-w /usr/src/github.com/byrnedo/dockdash golang:1.5.1 \
29-
go get -d -v && go build -v -o /tmp/dockdash main.go && /tmp/dockdash
29+
go get -d -v && go build -v -o /tmp/dockdash && /tmp/dockdash
3030

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ func main() {
184184
uiView.CpuChart.DataLabels = newStatsCharts.CpuChart.DataLabels[offset:]
185185
uiView.MemChart.Data = newStatsCharts.MemChart.Data[offset:]
186186
uiView.MemChart.DataLabels = newStatsCharts.MemChart.DataLabels[offset:]
187+
default:
187188
if time.Now().Sub(lastStatsRender) > 500*time.Millisecond {
188-
Info.Println("Got draw stats event")
189189
uiView.Render()
190190
lastStatsRender = time.Now()
191191
}

0 commit comments

Comments
 (0)