Update cmd/lotus-miner/sealing.go
This commit is contained in:
parent
28e3c8bd3f
commit
1f7d584517
@ -93,7 +93,7 @@ var sealingWorkersCmd = &cli.Command{
|
|||||||
cpuBars := int(stat.CpuUse * barCols / stat.Info.Resources.CPUs)
|
cpuBars := int(stat.CpuUse * barCols / stat.Info.Resources.CPUs)
|
||||||
cpuBar := strings.Repeat("|", cpuBars)
|
cpuBar := strings.Repeat("|", cpuBars)
|
||||||
if int(barCols)-cpuBars >= 0 {
|
if int(barCols)-cpuBars >= 0 {
|
||||||
cpuBar = cpuBar + strings.Repeat(" ", int(barCols)-cpuBars)
|
cpuBar += strings.Repeat(" ", int(barCols)-cpuBars)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\tCPU: [%s] %d/%d core(s) in use\n",
|
fmt.Printf("\tCPU: [%s] %d/%d core(s) in use\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user