diff --git a/src/contexts/nfs/nfs.go b/src/contexts/nfs/nfs.go index 2deb2726..26595398 100644 --- a/src/contexts/nfs/nfs.go +++ b/src/contexts/nfs/nfs.go @@ -711,8 +711,9 @@ var Index = &ctx.Context{Name: "nfs", Help: "存储中心", if args = append(args, "log", "--shortstat", "--pretty=commit: %ad", "--date=iso"); len(arg) > 1 { args = append(args, arg[1:]...) } else { - args = append(args, "--reverse") + // args = append(args, "--reverse") } + args = append(args, "--reverse") if out, e := exec.Command("git", args...).CombinedOutput(); e == nil { for _, v := range strings.Split(string(out), "commit: ") { diff --git a/src/contexts/tcp/tcp.go b/src/contexts/tcp/tcp.go index d5f820eb..752852da 100644 --- a/src/contexts/tcp/tcp.go +++ b/src/contexts/tcp/tcp.go @@ -29,7 +29,7 @@ func (tcp *TCP) parse(m *ctx.Message, arg ...string) ([]string, []string, bool) address := []string{} if arg[1] == "dev" { - m.Cmd("web.get", arg[1], arg[2], "temp", "ports", "format", "object").Table(func(line map[string]string) { + m.Cmd("web.get", arg[1], arg[2], "temp", "ports", "format", "object", "temp_expire", "10").Table(func(line map[string]string) { address = append(address, line["value"]) }) if len(address) == 0 {