mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-23 16:41:30 +00:00
Simplify for loop
This commit is contained in:
parent
cac3b84a5d
commit
569bb06e52
2
compy.go
2
compy.go
|
@ -69,7 +69,7 @@ func main() {
|
||||||
c := make(chan os.Signal, 2)
|
c := make(chan os.Signal, 2)
|
||||||
signal.Notify(c, os.Interrupt)
|
signal.Notify(c, os.Interrupt)
|
||||||
go func() {
|
go func() {
|
||||||
for _ = range c {
|
for range c {
|
||||||
read := atomic.LoadUint64(&p.ReadCount)
|
read := atomic.LoadUint64(&p.ReadCount)
|
||||||
written := atomic.LoadUint64(&p.WriteCount)
|
written := atomic.LoadUint64(&p.WriteCount)
|
||||||
log.Printf("compy exiting, total transcoded: %d -> %d (%3.1f%%)",
|
log.Printf("compy exiting, total transcoded: %d -> %d (%3.1f%%)",
|
||||||
|
|
Loading…
Reference in a new issue