]> git.seodisparate.com - mpd_info_screen/commit
Fix get current_song_pos in shared
authorStephen Seo <seo.disparate@gmail.com>
Thu, 16 Dec 2021 02:10:10 +0000 (11:10 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 16 Dec 2021 02:10:10 +0000 (11:10 +0900)
commit7fb3525ec709993a7525f457809e58aa7ad2135f
tree6e43fb1f6543cc08a4b2c4c554a4a77a5c68b41c
parent4e4a073cb144db5a25c4c1a3aa219039df5e7083
Fix get current_song_pos in shared

When polling for the shared data, the position of the song now accounts
for when the position was polled (using an Instant object set to "now()"
on poll, and returning the position with the Instant's elapsed time).
src/mpd_handler.rs