changed sendJson param and removed not needed file mode
removed instantaneous speed; update only if percentage delta > 0.1 removed instantaneous speed; update only if percentage delta > 0.1
This commit is contained in:
parent
2509420ba5
commit
1532b2a8c8
2 changed files with 19 additions and 26 deletions
|
@ -64,7 +64,7 @@ func (i *ircHandler) run() {
|
|||
i.log("Connected")
|
||||
}
|
||||
case progress := <-i.client.Progress:
|
||||
i.state.sendJSON("progress", progress.ToJSON())
|
||||
i.state.sendJSON("pm", Message{Server: i.client.Host, From: "@dcc", Content: progress.ToJSON()})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue