Skip to content

Commit

Permalink
Small fix to rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Oct 25, 2015
1 parent ff51298 commit 5d87584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:
docker run --rm -it\
-v "$(ROOT_DIR)":/usr/src/github.com/byrnedo/dockdash \
-w /usr/src/github.com/byrnedo/dockdash golang:1.5.1 \
go get -d -v && go build -v -o build/dockdash main.go
go get -d -v && go build -v -o build/dockdash

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

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

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ func main() {
uiView.CpuChart.DataLabels = newStatsCharts.CpuChart.DataLabels[offset:]
uiView.MemChart.Data = newStatsCharts.MemChart.Data[offset:]
uiView.MemChart.DataLabels = newStatsCharts.MemChart.DataLabels[offset:]
default:
if time.Now().Sub(lastStatsRender) > 500*time.Millisecond {
Info.Println("Got draw stats event")
uiView.Render()
lastStatsRender = time.Now()
}
Expand Down

0 comments on commit 5d87584

Please sign in to comment.