Fix gofmt -s and spelling issues

pull/481/head
Tobias Schmidt 8 years ago
parent 2ccd3340df
commit abdebef47c

@ -419,7 +419,7 @@ func NewMountStatsCollector() (Collector, error) {
NFSEventVFSLockTotal: prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "event_vfs_lock_total"),
"Number of times locking has been attemped on a file.",
"Number of times locking has been attempted on a file.",
labels,
nil,
),

@ -31,20 +31,20 @@ var (
procLineRE = regexp.MustCompile(`^proc(\d+) \d+ (\d+( \d+)*)$`)
nfsProcedures = map[string][]string{
"2": []string{
"2": {
"null", "getattr", "setattr", "root", "lookup",
"readlink", "read", "writecache", "write", "create",
"remove", "rename", "link", "symlink", "mkdir",
"rmdir", "readdir", "statfs",
},
"3": []string{
"3": {
"null", "getattr", "setattr", "lookup", "access",
"readlink", "read", "write", "create", "mkdir",
"symlink", "mknod", "remove", "rmdir", "rename",
"link", "readdir", "readdirplus", "fsstat", "fsinfo",
"pathconf", "commit",
},
"4": []string{
"4": {
"null", "read", "write", "commit", "open",
"open_confirm", "open_noattr", "open_downgrade",
"close", "setattr", "fsinfo", "renew", "setclientid",

@ -24,7 +24,7 @@ import (
// Creates mock UnitLists
func getUnitListFixtures() [][]dbus.UnitStatus {
fixture1 := []dbus.UnitStatus{
dbus.UnitStatus{
{
Name: "foo",
Description: "foo desc",
LoadState: "loaded",
@ -36,7 +36,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
JobType: "",
JobPath: "/",
},
dbus.UnitStatus{
{
Name: "bar",
Description: "bar desc",
LoadState: "not-found",
@ -48,7 +48,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
JobType: "",
JobPath: "/",
},
dbus.UnitStatus{
{
Name: "foobar",
Description: "bar desc",
LoadState: "not-found",
@ -60,7 +60,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
JobType: "",
JobPath: "/",
},
dbus.UnitStatus{
{
Name: "baz",
Description: "bar desc",
LoadState: "not-found",

Loading…
Cancel
Save