diff --git a/lib/dstat b/lib/dstat index d1db469aa6..8165e5c5e9 100644 --- a/lib/dstat +++ b/lib/dstat @@ -29,7 +29,7 @@ function start_dstat { DSTAT_OPTS="-tcmndrylpg --top-cpu-adv --top-io-adv" if [[ -n ${LOGDIR} ]]; then screen_it dstat "cd $TOP_DIR; dstat $DSTAT_OPTS | tee $LOGDIR/$DSTAT_FILE" - if [[ -n ${SCREEN_LOGDIR} ]]; then + if [[ -n ${SCREEN_LOGDIR} && ${SCREEN_LOGDIR} != ${LOGDIR} ]]; then # Drop the backward-compat symlink ln -sf $LOGDIR/$DSTAT_FILE ${SCREEN_LOGDIR}/$DSTAT_FILE fi