only add separator if there is more data

This commit is contained in:
nifi 2010-03-17 22:44:20 +00:00
parent 17a721a7e4
commit ef5a4a6ad7
1 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: RadioLogger.java,v 1.33 2010/03/17 14:16:13 nifi Exp $ * $Id: RadioLogger.java,v 1.34 2010/03/17 22:44:20 nifi Exp $
*/ */
package se.sics.cooja.plugins; package se.sics.cooja.plugins;
@ -456,8 +456,10 @@ public class RadioLogger extends VisPlugin {
} }
/* continue another round if more bytes left */ /* continue another round if more bytes left */
analyze = packet.hasMoreData(); analyze = packet.hasMoreData();
brief.append('|'); if (analyze) {
verbose.append("<p>"); brief.append('|');
verbose.append("<p>");
}
break; break;
} }
} }