src/server/pps/pretty/pretty.go
func PrintWorkerStatus(w io.Writer, workerStatus *ppsclient.WorkerStatus, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", workerStatus.WorkerID)
	fmt.Fprintf(w, "%s\t", workerStatus.JobID)
	for _, datum := range workerStatus.Data {
		fmt.Fprintf(w, datum.Path)
	}
	fmt.Fprintf(w, "\t")
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", workerStatus.Started.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(workerStatus.Started))
	}
	fmt.Fprintf(w, "%d\t\n", workerStatus.QueueSize)
}
func PrintWorkerStatus(w io.Writer, workerStatus *ppsclient.WorkerStatus, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", workerStatus.WorkerID)
	fmt.Fprintf(w, "%s\t", workerStatus.JobID)
	for _, datum := range workerStatus.Data {
		fmt.Fprintf(w, datum.Path)
	}
	fmt.Fprintf(w, "\t")
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", workerStatus.Started.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(workerStatus.Started))
	}
	fmt.Fprintf(w, "%d\t\n", workerStatus.QueueSize)
}
func PrintWorkerStatus ( w io . Writer , workerStatus * ppsclient . WorkerStatus , fullTimestamps bool ) { fmt . Fprintf ( w , " \t " , workerStatus . WorkerID ) fmt . Fprintf ( w , " \t " , workerStatus . JobID ) for _ , datum := range workerStatus . Data { fmt . Fprintf ( w , datum . Path ) } fmt . Fprintf ( w , " \t " ) if fullTimestamps { fmt . Fprintf ( w , " \t " , workerStatus . Started . String ( ) ) } else { fmt . Fprintf ( w , " \t " , pretty . Ago ( workerStatus . Started ) ) } fmt . Fprintf ( w , " \t \n " , workerStatus . QueueSize ) }
// PrintWorkerStatus pretty prints a worker status.
PrintWorkerStatus pretty prints a worker status .