From d2edb0fc3222f79d29568843612fc35df040007e Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 25 Jun 2008 07:47:59 +0000 Subject: [PATCH 1/1] Check the length of the description of the unit used in its summary. If the description is too long, the summary display the name of the Tesh file. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5801 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh2/src/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tesh2/src/unit.c b/tools/tesh2/src/unit.c index 23985dfae6..a3c5f18c9e 100644 --- a/tools/tesh2/src/unit.c +++ b/tools/tesh2/src/unit.c @@ -536,7 +536,7 @@ unit_summuarize(unit_t unit) return -1; } - if(unit->description) + if((unit->description) && strlen(unit->description) < 78) strcpy(title, unit->description); else sprintf(title, "file : %s",unit->fstream->name); -- 2.20.1