From 873bb9902bdf522f5d7f62bba8146a1a3ea8b3ee Mon Sep 17 00:00:00 2001 From: Andy Bauer Date: Sat, 19 Nov 2016 08:53:17 -0600 Subject: [PATCH] recalculating zmswap at this point is unnesessary --- src/zm_monitor.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index ef2e25f9d..0bacadd0f 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -4216,9 +4216,6 @@ void MonitorStream::runStream() } if ( buffered_playback ) { - char swap_path[PATH_MAX] = ""; - - snprintf( swap_path, sizeof(swap_path), "%s/zmswap-m%d/zmswap-q%06d", config.path_swap, monitor->Id(), connkey ); Debug( 1, "Cleaning swap files from %s", swap_path ); struct stat stat_buf; if ( stat( swap_path, &stat_buf ) < 0 )