From 92a12e408f555f1b61965c023358e29b3a33cbde Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 25 Apr 2012 11:26:35 +0400 Subject: [PATCH] lib/sectionsdclient/sectionsdcontrol.cpp: add --freemem command --- lib/sectionsdclient/sectionsdcontrol.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sectionsdclient/sectionsdcontrol.cpp b/lib/sectionsdclient/sectionsdcontrol.cpp index 365100e21..505dd80f5 100644 --- a/lib/sectionsdclient/sectionsdcontrol.cpp +++ b/lib/sectionsdclient/sectionsdcontrol.cpp @@ -70,6 +70,11 @@ int main(int argc, char** argv) if (!strcmp(argv[i], "--dump")) { client.dumpStatus(); } + else + if (!strcmp(argv[i], "--freemem")) { + printf("Removing all cached epg...\n"); + client.freeMemory(); + } } return 0;