Ignore:
Timestamp:
Sep 29, 2022, 3:56:44 PM (6 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
master
Children:
f92e7b9
Parents:
da77728
Message:

Relaxed the warning a little.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/cluster.hfa

    rda77728 r33e4968  
    2727static inline unsigned long long moving_average(unsigned long long currtsc, unsigned long long instsc, unsigned long long old_avg, bool strict) {
    2828        (void)strict; // disable the warning around the fact this is unused in release.
    29         /* paranoid */ warnf( !strict || old_avg < 11_000_000_000, "Suspiciously large previous average: %'llu (%llx), %'ldms \n", old_avg, old_avg, program()`ms );
     29        /* paranoid */ warnf( !strict || old_avg < 33_000_000_000, "Suspiciously large previous average: %'llu (%llx), %'ldms \n", old_avg, old_avg, program()`ms );
    3030
    3131        const unsigned long long new_val = currtsc > instsc ? currtsc - instsc : 0;
     
    3535        const unsigned long long ret = ((new_weight * new_val) + (old_weight * old_avg)) / total_weight;
    3636
    37         /* paranoid */ warnf( !strict || ret < 11_000_000_000, "Suspiciously large new average after %'ldms cputime: %'llu (%llx) from %'llu-%'llu (%'llu, %'llu) and %'llu\n", program()`ms, ret, ret, currtsc, instsc, new_val, new_val / 1000000, old_avg );
     37        /* paranoid */ warnf( !strict || ret < 33_000_000_000, "Suspiciously large new average after %'ldms cputime: %'llu (%llx) from %'llu-%'llu (%'llu, %'llu) and %'llu\n", program()`ms, ret, ret, currtsc, instsc, new_val, new_val / 1000000, old_avg );
    3838        return ret;
    3939}
Note: See TracChangeset for help on using the changeset viewer.