diff options
Diffstat (limited to 'astro/boinc-astropulse/files/patch-ap__client__main.cpp')
-rw-r--r-- | astro/boinc-astropulse/files/patch-ap__client__main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/astro/boinc-astropulse/files/patch-ap__client__main.cpp b/astro/boinc-astropulse/files/patch-ap__client__main.cpp index 8c8b3d28a70f..f9910dfc1202 100644 --- a/astro/boinc-astropulse/files/patch-ap__client__main.cpp +++ b/astro/boinc-astropulse/files/patch-ap__client__main.cpp @@ -1,5 +1,16 @@ --- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC +++ ap_client_main.cpp +@@ -241,7 +241,7 @@ int detect_hit(float *arr, float& total) + * calls to this function. + */ + void updatecputime() { +- int cputicksinterval = abs(clock() - lastcputicks); ++ int cputicksinterval = abs((long)clock() - (long)lastcputicks); + lastcputicks = clock(); + maxcputicksinterval = (maxcputicksinterval > cputicksinterval)?maxcputicksinterval:cputicksinterval; + cputime += ((float)cputicksinterval / (float)CLOCKS_PER_SEC); +--- ap_client_main.cpp.orig 2012-08-14 00:07:20 UTC ++++ ap_client_main.cpp @@ -1288,7 +1288,6 @@ void Science::mainloop() { * used to inform the core client GUI of the % complete. */ |