summaryrefslogtreecommitdiff
path: root/argv.Print.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.Print.go')
-rw-r--r--argv.Print.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/argv.Print.go b/argv.Print.go
index f57cbd5..68c2391 100644
--- a/argv.Print.go
+++ b/argv.Print.go
@@ -29,12 +29,12 @@ func (pb *Argv) PrintDebug(last string) {
}
func (pb *Argv) PrintDebugNew(msg string, last *Argv) {
- cmd := fmt.Sprintf("cmd='%s'", pb.GetCmd())
// var arglast string
// arglast = fmt.Sprintf("last='%s'", last.GetCmd())
partial := fmt.Sprintf("p='%s'", pb.Partial)
age := cobol.Duration(pb.Ctime)
- dur := cobol.Duration(pb.Duration)
+ pdur := cobol.Duration(pb.Duration)
+ argvdur := cobol.Duration(pb.ArgvDuration)
var dbg string
if me.debug {
@@ -42,10 +42,10 @@ func (pb *Argv) PrintDebugNew(msg string, last *Argv) {
} else {
dbg = "dbg=0"
}
- sargv := fmt.Sprintf("argv(%v)", pb.Real)
- fast := fmt.Sprintf("F%-2dout%-2derr%-2d", pb.Fast, pb.OutCounter, pb.ErrCounter)
- top := fmt.Sprintf("%-4.4s age=(%s)dur(%s) %s %s %-12.12s", pb.Uuid, age, dur, dbg, fast, cmd)
- Debugf("%s: %s %-12.12s %s cmd=%s real='%v' len(%d)", msg, top, partial, pb.GetCmd(), sargv, pb.Real, me.all.Len())
+ lens := fmt.Sprintf("len=%-2d,%-2d,%-2d", me.all.Len(), len(strings.Fields(pb.Stdout)), len(strings.Split(pb.Stderr, "\n")))
+ fast := fmt.Sprintf("F%-2dout%-2derr%-2d %s", pb.Fast, pb.OutCounter, pb.ErrCounter, lens)
+ top := fmt.Sprintf("%-4.4s age=(%s)(%s)dur(%s) %s %s cmd=%-12.12s", pb.Uuid, age, pdur, argvdur, dbg, fast, pb.GetCmd())
+ Debugf("%s: %s %-12.12s real='%v'", msg, top, partial, pb.Real)
}
func (all *Argvs) PrintHistory(msg string) {