mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Merge pull request #51 from tomwilkie/lint
Add lint script, run in circle ci.
This commit is contained in:
@@ -57,7 +57,7 @@ func (m *cgroupMapper) Map(pid uint) (string, error) {
|
||||
}
|
||||
|
||||
func (m *cgroupMapper) loop(d time.Duration) {
|
||||
for _ = range time.Tick(d) {
|
||||
for range time.Tick(d) {
|
||||
m.update()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,14 +38,14 @@ var (
|
||||
fixProcessPIDB = uint(4243)
|
||||
|
||||
fixConnections = []procspy.Connection{
|
||||
procspy.Connection{
|
||||
{
|
||||
Transport: "tcp",
|
||||
LocalAddress: fixLocalAddress,
|
||||
LocalPort: fixLocalPort,
|
||||
RemoteAddress: fixRemoteAddress,
|
||||
RemotePort: fixRemotePort,
|
||||
},
|
||||
procspy.Connection{
|
||||
{
|
||||
Transport: "tcp",
|
||||
LocalAddress: fixLocalAddress,
|
||||
LocalPort: fixLocalPort,
|
||||
@@ -55,7 +55,7 @@ var (
|
||||
}
|
||||
|
||||
fixConnectionsWithProcesses = []procspy.Connection{
|
||||
procspy.Connection{
|
||||
{
|
||||
Transport: "tcp",
|
||||
LocalAddress: fixLocalAddress,
|
||||
LocalPort: fixLocalPort,
|
||||
@@ -66,7 +66,7 @@ var (
|
||||
Name: fixProcessName,
|
||||
},
|
||||
},
|
||||
procspy.Connection{
|
||||
{
|
||||
Transport: "tcp",
|
||||
LocalAddress: fixLocalAddress,
|
||||
LocalPort: fixLocalPort,
|
||||
|
||||
Reference in New Issue
Block a user