From 9c356467498a15db35340d3b402851af8214e431 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Wed, 1 Jul 2020 15:56:05 +0200 Subject: [PATCH] Better variable name --- src/nsmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nsmd.cpp b/src/nsmd.cpp index f0c782a..301348e 100644 --- a/src/nsmd.cpp +++ b/src/nsmd.cpp @@ -572,15 +572,15 @@ number_of_reponsive_clients ( void ) * that this program will never announce (or rather nsm-proxy announces normally). */ - int active = 0; + int responsive = 0; for ( std::list::const_iterator i = client.begin(); i != client.end(); i++ ) { //Optimisation: Clients that never launched (e.g. file not found) will be checked many times/seconds here. We skip them by counting them if ( (*i)->active || (*i)->launch_error ) - active++; + responsive++; } - return active; + return responsive; } void