From c883214eb9f3c57396017412572d3f6c51f25a1c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 24 Apr 2009 14:20:02 +0000 Subject: [PATCH] - fix typo in compare_cuda() svn path=/trunk/boinc/; revision=17876 --- checkin_notes | 6 ++++++ lib/coproc.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 3ef9fae45f..574b5f7ee5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4175,3 +4175,9 @@ David 24 Apr 2009 lib/ coproc.cpp + +David 24 Apr 2009 + - fix typo in compare_cuda() + + lib/ + coproc.cpp diff --git a/lib/coproc.cpp b/lib/coproc.cpp index afe10d6634..3c9cf522aa 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -155,7 +155,7 @@ int cuda_compare(COPROC_CUDA& c1, COPROC_CUDA& c2, bool ignore_flops) { if (c1.prop.totalGlobalMem < c2.prop.totalGlobalMem) return -1; if (ignore_flops) return 0; double s1 = c1.flops_estimate(); - double s2 = c1.flops_estimate(); + double s2 = c2.flops_estimate(); if (s1 > s2) return 1; if (s1 < s2) return -1; return 0;