Use int instead of long. Monitor->GetCaptureDelay returns an int, so no reason to use long.

This commit is contained in:
Isaac Connor 2018-04-23 10:40:42 -04:00
parent 609244857d
commit 3b9f7b38c5
1 changed files with 3 additions and 3 deletions

View File

@ -262,9 +262,9 @@ int main(int argc, char *argv[]) {
} }
} }
long *capture_delays = new long[n_monitors]; int *capture_delays = new int[n_monitors];
long *alarm_capture_delays = new long[n_monitors]; int *alarm_capture_delays = new int[n_monitors];
long *next_delays = new long[n_monitors]; int *next_delays = new int[n_monitors];
struct timeval * last_capture_times = new struct timeval[n_monitors]; struct timeval * last_capture_times = new struct timeval[n_monitors];
for ( int i = 0; i < n_monitors; i++ ) { for ( int i = 0; i < n_monitors; i++ ) {
last_capture_times[i].tv_sec = last_capture_times[i].tv_usec = 0; last_capture_times[i].tv_sec = last_capture_times[i].tv_usec = 0;