From 89d489a32e3e5646d637ca05bcb92a0e3af6154d Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Wed, 24 Aug 2011 18:00:25 -0300 Subject: [PATCH] bandwidth-usage.tree: Changed $PREVIOUS_TRAFFIC exit value from 1 to 0 Changed to continue the generation of the XML file, even when there's no bandwidth usage collected data. Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Signed-off-by: Josiney de Souza <josineys@c3sl.ufpr.br> --- scripts/collect/use/bandwidth-usage.tree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/collect/use/bandwidth-usage.tree b/scripts/collect/use/bandwidth-usage.tree index e64ec59..43f327d 100755 --- a/scripts/collect/use/bandwidth-usage.tree +++ b/scripts/collect/use/bandwidth-usage.tree @@ -162,8 +162,8 @@ fi PREVIOUS_TRAFFIC="${PREFIX}/../../../net/previous-traffic.txt" -test -f "${PREVIOUS_TRAFFIC}" || exit 1 -test -s $PREVIOUS_TRAFFIC || exit 1 +test -f "${PREVIOUS_TRAFFIC}" || exit 0 +test -s $PREVIOUS_TRAFFIC || exit 0 # Call the function xml_data_generator to generate the data to XML xml_data_generator -- GitLab