From 2d91fce9705b307e657bf5a4caf5cdbdee44faa1 Mon Sep 17 00:00:00 2001 From: wangshaonan Date: Tue, 6 Dec 2016 03:11:27 +0000 Subject: [PATCH] Add '\n' to MEMORY DOCTOR command output message when num_reports is 0 or empty is 1 --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.c b/src/object.c index 4d14ae8d..1ae37c9d 100644 --- a/src/object.c +++ b/src/object.c @@ -955,14 +955,14 @@ sds getMemoryDoctorReport(void) { if (num_reports == 0) { s = sdsnew( "Hi Sam, I can't find any memory issue in your instance. " - "I can only account for what occurs on this base."); + "I can only account for what occurs on this base.\n"); } else if (empty == 1) { s = sdsnew( "Hi Sam, this instance is empty or is using very little memory, " "my issues detector can't be used in these conditions. " "Please, leave for your mission on Earth and fill it with some data. " "The new Sam and I will be back to our programming as soon as I " - "finished rebooting."); + "finished rebooting.\n"); } else { s = sdsnew("Sam, I detected a few issues in this Redis instance memory implants:\n\n"); if (big_peak) {