gofmt fixes

This commit is contained in:
Tom Wilkie
2015-05-19 10:42:52 +00:00
parent 84d724f645
commit 6b2bad2090
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func DemoReport(nodeCount int) report.Report {
// Make up some plausible IPv4 numbers
hosts := []string{}
ip := [4]int{192, 168, 1, 1}
for _ = range make([]struct{}, nodeCount) {
for range make([]struct{}, nodeCount) {
hosts = append(hosts, fmt.Sprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]))
ip[3]++
if ip[3] > 200 {
+1 -1
View File
@@ -46,7 +46,7 @@ func main() {
log.Printf("listening on %s", *listenAddress)
for _ = range time.Tick(*publishInterval) {
for range time.Tick(*publishInterval) {
publisher.Publish(fixedReport)
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ func DemoReport(nodeCount int) report.Report {
// Make up some plausible IPv4 numbers
hosts := []string{}
ip := [4]int{192, 168, 1, 1}
for _ = range make([]struct{}, nodeCount) {
for range make([]struct{}, nodeCount) {
hosts = append(hosts, fmt.Sprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]))
ip[3]++
if ip[3] > 200 {
+1 -1
View File
@@ -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()
}
}
+4 -4
View File
@@ -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,