From: Bernhard F. <al...@us...> - 2004-02-15 22:21:29
|
Update of /cvsroot/kgi-wip/kgi-0.9/drv/display/monitor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4431/drv/display/monitor Modified Files: spec2param.awk Log Message: - print Bandwidth Index: spec2param.awk =================================================================== RCS file: /cvsroot/kgi-wip/kgi-0.9/drv/display/monitor/spec2param.awk,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -d -r1.1 -r1.2 --- spec2param.awk 1 Nov 2003 22:54:11 -0000 1.1 +++ spec2param.awk 15 Feb 2004 22:13:53 -0000 1.2 @@ -18,6 +18,12 @@ # $Id$ # +/Bandwidth/ { + gsub(/[,(]/," "); + bwMin[pos] = $2; + bwMax[pos] = $3; +} + /hFreq/ { gsub(/,/," "); hMin[pos] = $2; @@ -56,4 +62,15 @@ END { printf("-%i", vMax[i]); } } + printf(" monitor_dclk="); + for (i = 0; i < pos; i++) { + if (i > 0) { + printf(","); + } + printf("%i", bwMin[i]); + if ((bwMax[i] != 0) || (bwMax[i] != bwMin[i])) { + printf("-%i", bwMax[i]); + } + } + } |