Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/astro/boinc-astropulse/files/patch-ap__client__main.cpp
16124 views
1
--- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC
2
+++ ap_client_main.cpp
3
@@ -241,7 +241,7 @@ int detect_hit(float *arr, float& total)
4
* calls to this function.
5
*/
6
void updatecputime() {
7
- int cputicksinterval = abs(clock() - lastcputicks);
8
+ int cputicksinterval = abs((long)clock() - (long)lastcputicks);
9
lastcputicks = clock();
10
maxcputicksinterval = (maxcputicksinterval > cputicksinterval)?maxcputicksinterval:cputicksinterval;
11
cputime += ((float)cputicksinterval / (float)CLOCKS_PER_SEC);
12
--- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC
13
+++ ap_client_main.cpp
14
@@ -1288,7 +1288,6 @@ void Science::mainloop() {
15
* used to inform the core client GUI of the % complete.
16
*/
17
boinc_fraction_done(state.frac_done);
18
- boinc_ops_cumulative(state.frac_done*FLOPS_PER_DM*(state.dm_hi-state.dm_low)*log((float)state.fft_len)/log(32768.0),0);
19
debug_loop(5, 2, debug_loop_msg);
20
21
/* This is the size of the power array.
22
23