]> git.sur5r.net Git - openldap/commitdiff
fix previous commit when GMP is not defined
authorPierangelo Masarati <ando@openldap.org>
Sat, 11 Sep 2004 17:29:05 +0000 (17:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 11 Sep 2004 17:29:05 +0000 (17:29 +0000)
servers/slapd/back-monitor/operation.c

index eb7be9baa8e128c5e9e4dbdabd045efbf4a125a1..8bcce7b2e530f0fb87143ef29a607b63381a2345 100644 (file)
@@ -182,8 +182,8 @@ monitor_subsys_ops_update(
                        mpz_add( nInitiated, nInitiated, slap_counters.sc_ops_initiated_[ i ] );
                        mpz_add( nCompleted, nCompleted, slap_counters.sc_ops_completed_[ i ] );
 #else /* ! HAVE_GMP */
-                       nInitiated += slap_counter.sc_ops_initiated_[ i ];
-                       nCompleted += slap_counter.sc_ops_completed_[ i ];
+                       nInitiated += slap_counters.sc_ops_initiated_[ i ];
+                       nCompleted += slap_counters.sc_ops_completed_[ i ];
 #endif /* ! HAVE_GMP */
                }
                ldap_pvt_thread_mutex_unlock( &slap_counters.sc_ops_mutex );
@@ -197,8 +197,8 @@ monitor_subsys_ops_update(
                                mpz_init_set( nInitiated, slap_counters.sc_ops_initiated_[ i ] );
                                mpz_init_set( nCompleted, slap_counters.sc_ops_completed_[ i ] );
 #else /* ! HAVE_GMP */
-                               nInitiated = slap_counter.sc_ops_initiated_[ i ];
-                               nCompleted = slap_counter.sc_ops_completed_[ i ];
+                               nInitiated = slap_counters.sc_ops_initiated_[ i ];
+                               nCompleted = slap_counters.sc_ops_completed_[ i ];
 #endif /* ! HAVE_GMP */
                                ldap_pvt_thread_mutex_unlock( &slap_counters.sc_ops_mutex );
                                break;