Commit Diff
Diff:
936bd53498d80451f2aeea9ab6295de8df9ab4fc
4ca60379bdad64619a17173b32ec4d8d155a9d94
Commit:
4ca60379bdad64619a17173b32ec4d8d155a9d94
Tree:
2df138412d24743b1362037dd360f78f52a69b3c
Author:
Omar Polo <op@omarpolo.com>
Date:
Sat Aug 13 12:31:25 2022 UTC
Message:
amused-monitor: move timekeeping after initial state sync
commit - 936bd53498d80451f2aeea9ab6295de8df9ab4fc
commit + 4ca60379bdad64619a17173b32ec4d8d155a9d94
blob - 5c13db34dce8e6805d91d1f1bb2ef66bac18c17c
blob + 4e0e873afc96128122c8ccd0b9dbd76d9cfad303
--- contrib/amused-monitor
+++ contrib/amused-monitor
@@ -318,15 +318,15 @@ if (`uname` =~ "OpenBSD") {
pledge qw(stdio tty proc exec) or die "pledge: $!";
}
}
-
-my $tick = 0;
-my $tbefore = clock_gettime(CLOCK_MONOTONIC);
getsongs;
getnums;
getstatus;
render;
+my $tick = 0;
+my $tbefore = clock_gettime(CLOCK_MONOTONIC);
+
while ($run) {
$poll->poll(0.25);
my $now = clock_gettime(CLOCK_MONOTONIC);
Omar Polo