Skip to content
Snippets Groups Projects
Verified Commit a9ca8d77 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes imports, reorders quassel

parent 4091d8f0
Branches
No related tags found
No related merge requests found
package main
import (
"git.kuschku.de/justjanne/cachet-monitor/quassel"
"github.com/sirupsen/logrus"
"time"
)
......@@ -22,8 +21,8 @@ func (m *QuasselMonitor) Config() *ConfigComponent {
func (m *QuasselMonitor) Measure() (Datapoint, error) {
before := time.Now()
conn := quassel.Connect(quassel.ConnectOptions{
ConnectionOptions: quassel.ConnectionOptions{
conn := Connect(ConnectOptions{
ConnectionOptions: ConnectionOptions{
Address: m.config.Quassel.Hostname,
Port: m.config.Quassel.Port,
Timeout: time.Duration(m.config.LatencyThresholds.Down) * time.Millisecond,
......
package quassel
package main
import (
"bufio"
......
package quassel
package main
import (
"encoding/binary"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment