Skip to content

Commit

Permalink
chore: change code comment and fix extra space in log
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Oct 27, 2021
1 parent fbe3429 commit f2bdb3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {

name := names[0]
player := mpris.New(conn, name)
fmt.Println("Getting information from ", player.GetIdentity())
fmt.Println("Getting information from", player.GetIdentity())

var rules = []string{
"type='signal',member='PropertiesChanged',path='/org/mpris/MediaPlayer2',interface='org.freedesktop.DBus.Properties'",
Expand All @@ -52,7 +52,7 @@ func main() {

client.Login("902662551119224852")
// the reason why we add a subtracted Duration is because
// time.Sub returns a Duration but i need a Time
// time.Sub returns a Duration but this function needs a Time for a timestamp
// confusing huh? thanks go
setPresence(initialMetadata, time.Now().Add(-time.Duration(elapsed) * time.Microsecond))
c := make(chan *dbus.Message, 10)
Expand Down

0 comments on commit f2bdb3a

Please sign in to comment.