Skip to content

Commit

Permalink
Merge pull request #1203 from weaveworks/reportcard
Browse files Browse the repository at this point in the history
Fix a couple of minor issue for goreportcard and add badge for it.
  • Loading branch information
paulbellamy committed Mar 24, 2016
2 parents ecab765 + ca4f6ad commit 8c0fddc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scope

[![Circle CI](https://circleci.com/gh/weaveworks/scope/tree/master.svg?style=shield)](https://circleci.com/gh/weaveworks/scope/tree/master) [![Coverage Status](https://coveralls.io/repos/weaveworks/scope/badge.svg)](https://coveralls.io/r/weaveworks/scope) [![Slack Status](https://weave-scope-slack.herokuapp.com/badge.svg)](https://weave-scope-slack.herokuapp.com)
[![Circle CI](https://circleci.com/gh/weaveworks/scope/tree/master.svg?style=shield)](https://circleci.com/gh/weaveworks/scope/tree/master) [![Coverage Status](https://coveralls.io/repos/weaveworks/scope/badge.svg)](https://coveralls.io/r/weaveworks/scope) [![Slack Status](https://weave-scope-slack.herokuapp.com/badge.svg)](https://weave-scope-slack.herokuapp.com) [![Go Report Card](https://goreportcard.com/badge/github.com/weaveworks/scope)](https://goreportcard.com/report/github.com/weaveworks/scope)

Weave Scope automatically generates a map of your application, enabling you to
intuitively understand, monitor, and control your containerized, microservices based application.
Expand Down
4 changes: 4 additions & 0 deletions experimental/sniff/testclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func main() {
}
log.Println(ci.Timestamp.String())
err = parser.DecodeLayers(data, &decoded)
if err != nil {
log.Printf("Error in DecodeLayers: %v", err)
continue
}
for _, t := range decoded {
switch t {
case layers.LayerTypeEthernet:
Expand Down
9 changes: 5 additions & 4 deletions experimental/tracer/ptrace/ptracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ func (t *PTracer) Stop() {
}

// TraceProcess starts tracing the given pid
func (t *PTracer) TraceProcess(pid int) *process {
result := make(chan *process)
func (t *PTracer) TraceProcess(pid int) {
result := make(chan struct{})
t.ops <- func() {
process := newProcess(pid, t)
t.processes[pid] = process
process.trace()
result <- process
result <- struct{}{}
}
return <-result
<-result
return
}

// StopTracing stops tracing all threads for the given pid
Expand Down

0 comments on commit 8c0fddc

Please sign in to comment.