From: cherierm Date: Wed, 25 Jun 2008 07:47:59 +0000 (+0000) Subject: Check the length of the description of the unit used in its summary. If the descripti... X-Git-Tag: v3.3~299 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d2edb0fc3222f79d29568843612fc35df040007e?hp=fed9d9cc9c216524b967d12066201ed485001550 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 --- 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);