Skip to content

Commit 5194fda

Browse files
authored
Merge pull request #38 from schattenmann80/fix-high-cpu-usage
FIX: CPU usage was 100%, now it is 10% without a perceived performanc…
2 parents 5d69ce0 + 5faf892 commit 5194fda

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

X32.c

+6
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,12 @@ int main(int argc, char **argv) {
10521052
// Done receiving/managing command parameters;
10531053
Xsend(whoto);
10541054
}
1055+
#ifdef __linux__
1056+
else
1057+
{
1058+
usleep( 10 );
1059+
}
1060+
#endif
10551061
//
10561062
// Update current client with data to be sent, or meters & subscribes?
10571063
// if (whoto == 0) { // Meters or other data to send?

0 commit comments

Comments
 (0)