Subversion Repositories svn1-original

Rev

Rev 192 | Rev 199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 192 Rev 193
Line 2434... Line 2434...
2434
 *      
2434
 *      
2435
 *      Entries that have invalid leg times are displayed to the operator
2435
 *      Entries that have invalid leg times are displayed to the operator
2436
 *      and the report process can be aborted
2436
 *      and the report process can be aborted
2437
 *
2437
 *
2438
 *  Parameters:
2438
 *  Parameters:
2439
 *      leg         Leg to test
2439
 *      leg             Leg to test
2440
 *      mode            Either end or elapsed times to be tested
2440
 *      mode            Either end or elapsed times to be tested
2441
 *
2441
 *
2442
 *  Returns:
2442
 *  Returns:
2443
 *      Returns FALSE if the report operation is to be aborted
2443
 *      Returns FALSE if the report operation is to be aborted
2444
 *
2444
 *
Line 2447... Line 2447...
2447
bool ck_data( int leg, int mode )
2447
bool ck_data( int leg, int mode )
2448
{
2448
{
2449
    ty_s_data  *ptr;
2449
    ty_s_data  *ptr;
2450
    unsigned    i;
2450
    unsigned    i;
2451
    int         bad = 0;
2451
    int         bad = 0;
2452
    int         j = 0;
2452
    int         k;
2453
    int         k, bad_leg;
2453
    int         bad_leg;
2454
    time_t     *t;                               /* An array of times */
2454
    time_t     *t;                               /* An array of times */
2455
 
2455
 
2456
    
-
 
2457
    
-
 
2458
    ptr = sort_data;
2456
    ptr = sort_data;
2459
    for( i = 1; i <= sort_num; i++, ptr++ )
2457
    for( i = 1; i <= sort_num; i++, ptr++ )
2460
    {
2458
    {
2461
        bad_leg = 0;
2459
        bad_leg = 0;
2462
        if( mode == C_DISQUAL )
2460
        if( mode == C_DISQUAL )
Line 2499... Line 2497...
2499
            {
2497
            {
2500
                ptr->flags.bad_times = TRUE;
2498
                ptr->flags.bad_times = TRUE;
2501
                
2499
                
2502
                if ( ! report_all )
2500
                if ( ! report_all )
2503
                {
2501
                {
2504
                    if( !bad )
-
 
2505
                        printf( "Team with incorrect time information" );
2502
                    printf( "Team with incorrect time information: %d", ptr->team  );
2506
                    if( ++j > 15 )
-
 
2507
                    {
-
 
2508
                        //printf( "\n" );
-
 
2509
                        j = 0;
-
 
2510
                    }
-
 
2511
                    //printf( "%4d ", ptr->team );
-
 
2512
                    bad++;
2503
                    bad++;
2513
                }
2504
                }
2514
            }
2505
            }
2515
        }
2506
        }
2516
    }
2507
    }
2517
 
2508
 
2518
    if( bad )
2509
    if( bad )
2519
    {
2510
    {
2520
        printf( "\n%d teams with incorrect times.\nThese have been flagged as unplaced\n", bad );
2511
        printf( "%d teams with incorrect times. These have been flagged as unplaced", bad );
2521
        return ( FALSE );
-
 
2522
//        return ( !getyes
-
 
2523
//                 ( "These have been flagged as unplaced - continue report" ) );
-
 
2524
    }
2512
    }
2525
    return ( FALSE );
2513
    return ( FALSE );
2526
}
2514
}
2527
 
2515
 
2528
/*========================================================================
2516
/*========================================================================