From a3f158d39959df01c44367cc60a364c19d5b904f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 24 May 2013 16:27:55 -0400 Subject: [PATCH] Diagnostics - Added GC setting to the diagnostics output. --- src/commands/CmdDiagnostics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index 764e93cb7..bbe624407 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -219,6 +219,12 @@ int CmdDiagnostics::execute (std::string& output) : STRING_CMD_DIAG_DISABLED) << "\n"; + out << " GC: " + << (context.config.getBoolean ("gc") + ? STRING_CMD_DIAG_ENABLED + : STRING_CMD_DIAG_DISABLED) + << "\n"; + // Determine rc.editor/$EDITOR/$VISUAL. char* peditor; if (context.config.get ("editor") != "")