Overview
| Comment: | Fixed [ 607882 ] Units "none" no longer accepted. Added a test for "none" to prevent units on that port from being checked. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
43448406c26b6b623388d14d6fda7578 |
| User & Date: | geraint@users.sourceforge.net on 2004-08-27 19:37:25.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2004-08-27
| ||
| 20:12:34 | Added note about "none" as an option for units. check-in: 4dcf9e1939 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
| 19:37:25 |
Fixed [ 607882 ] Units "none" no longer accepted. Added a test for "none" to prevent units on that port from being checked. check-in: 43448406c2 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
|
2004-08-26
| ||
| 16:24:40 | Function is no longer used (replaced by bg2eps). check-in: ff646ac610 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/mtt_units.sh
from [215c2cb42f]
to [40d4f9eae3].
| ︙ | ︙ | |||
36 37 38 39 40 41 42 |
*)
echo ${sys} ${port} DOMAIN_ERROR invalid domain ${domain}
exit 1
esac
get_unit()
{
| > > > | | | | | > | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
*)
echo ${sys} ${port} DOMAIN_ERROR invalid domain ${domain}
exit 1
esac
get_unit()
{
if [ "$2" == "none" ]; then
echo 1
else
factor=`units $2 $3 | head -1 | sed 's/\*//'`
if [ `echo $factor | wc -w` = "1" ]; then
echo $factor
else
echo $1_UNIT_ERROR unit $2 not compatible with domain ${domain}
fi
fi
}
## Check effort and flow for comptability + find factor
effort_factor=`get_unit EFFORT $effort $base_effort`
flow_factor=`get_unit FLOW $flow $base_flow`
echo ${sys} ${port} ${effort_factor} ${flow_factor}
|