View | Details | Raw Unified | Return to bug 18547
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +12 lines)
Line  Link Here
0
-- wmmoonclock-1.27.orig/Src/wmMoonClock.c
0
++ wmmoonclock-1.27/Src/wmMoonClock.c
Lines 123-129 Link Here
123
/* 
123
/* 
124
 *  Delay between refreshes (in microseconds) 
124
 *  Delay between refreshes (in microseconds) 
125
 */
125
 */
126
#define DELAY 100000L
126
#define DELAY 1000000L
127
#define WMMOONCLOCK_VERSION "1.27"
127
#define WMMOONCLOCK_VERSION "1.27"
128
128
129
129
Lines 165-170 Link Here
165
    double		UT, val, RA, DEC, UTRise, UTSet, LocalHour, hour24();
165
    double		UT, val, RA, DEC, UTRise, UTSet, LocalHour, hour24();
166
    int			D, H, M, S, sgn, A, B, q;
166
    int			D, H, M, S, sgn, A, B, q;
167
    CTrans           	c;
167
    CTrans           	c;
168
    struct timeval	timeout;
169
    fd_set		xfdset;
168
170
169
171
170
172
Lines 703-708 Link Here
703
705
704
706
705
707
708
	/*
709
	 *  Add X display to file descriptor set for polling.
710
	 */
711
	FD_ZERO(&xfdset);
712
	FD_SET(ConnectionNumber(display), &xfdset);
706
713
707
714
708
715
Lines 732-738 Link Here
732
	 *  Redraw and wait for next update 
739
	 *  Redraw and wait for next update 
733
	 */
740
	 */
734
	RedrawWindow();
741
	RedrawWindow();
735
	usleep(DELAY);
742
	timeout.tv_sec = DELAY / 1000000L;
743
	timeout.tv_usec = DELAY % 1000000L;
744
	select(ConnectionNumber(display) + 1, &xfdset, NULL, NULL, &timeout);
736
745
737
746
738
     }
747
     }

Return to bug 18547