Path: blob/main/astro/boinc-astropulse/files/patch-ap__client__main.cpp
16124 views
--- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC1+++ ap_client_main.cpp2@@ -241,7 +241,7 @@ int detect_hit(float *arr, float& total)3* calls to this function.4*/5void updatecputime() {6- int cputicksinterval = abs(clock() - lastcputicks);7+ int cputicksinterval = abs((long)clock() - (long)lastcputicks);8lastcputicks = clock();9maxcputicksinterval = (maxcputicksinterval > cputicksinterval)?maxcputicksinterval:cputicksinterval;10cputime += ((float)cputicksinterval / (float)CLOCKS_PER_SEC);11--- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC12+++ ap_client_main.cpp13@@ -1288,7 +1288,6 @@ void Science::mainloop() {14* used to inform the core client GUI of the % complete.15*/16boinc_fraction_done(state.frac_done);17- boinc_ops_cumulative(state.frac_done*FLOPS_PER_DM*(state.dm_hi-state.dm_low)*log((float)state.fft_len)/log(32768.0),0);18debug_loop(5, 2, debug_loop_msg);1920/* This is the size of the power array.212223