From d920914ac63c8e2904d90f56fb12c04bcfd877d0 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Thu, 4 Oct 2012 16:50:56 +0000 Subject: [PATCH] *** empty log message *** --- cts/cts | 10 +++++----- cts/htdocs/cts.pl | 2 +- cts/htdocs/index.html | 6 +++--- cts/htdocs/scripts/base.js | 4 ++-- cts/include/TrbNet.pm | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cts/cts b/cts/cts index 726dc72..a20cce8 100755 --- a/cts/cts +++ b/cts/cts @@ -54,11 +54,11 @@ Commands: write VALUES sepearated list in the following format: {key}={value} Example: cts.pl w reg0=0x12, trg_coin_config0.window=10 - m [file] | Rate Monitor. Periodically fetch counters and calculate - monitor [file] rates. Results are send to STDOUT in an human readable form. - If [file] is provided the data is additionally dumped into - [file].js in the JSON format. Further a trigger rate plot - is stored in [file].jpg + m [dir] | Rate Monitor. Periodically fetch counters and calculate + monitor [dir] rates. Results are send to STDOUT in an human readable form. + If [dir] is provided the data is additionally dumped into + in the JSON format. Further a trigger rate plot + is stored in [file].svg END_MSG } diff --git a/cts/htdocs/cts.pl b/cts/htdocs/cts.pl index faeea87..7a543e3 100755 --- a/cts/htdocs/cts.pl +++ b/cts/htdocs/cts.pl @@ -66,7 +66,7 @@ if ($query eq "init") { $cts->getTrb->stopCachedWrites(); - print "1"; + print "1;"; } 1; diff --git a/cts/htdocs/index.html b/cts/htdocs/index.html index ba97457..34a8fba 100644 --- a/cts/htdocs/index.html +++ b/cts/htdocs/index.html @@ -33,19 +33,19 @@ Trigger asserted n/a - n/a + n/a Trigger rising edges n/a - n/a + n/a Trigger accepted n/a - n/a + n/a diff --git a/cts/htdocs/scripts/base.js b/cts/htdocs/scripts/base.js index 542a899..345449b 100644 --- a/cts/htdocs/scripts/base.js +++ b/cts/htdocs/scripts/base.js @@ -306,7 +306,7 @@ var CTS = new Class({ e.set('value', parseCallback(e, 'format')(value, undefined, e)); } } - + tmp[s.exp] = value; e.valueOnEnter = e.get('value'); @@ -451,7 +451,7 @@ var CTS = new Class({ edgeType.format = edgeType.interpret = function(x, y, t) { if (!t) t = y; - x = x ? 1 : 0; + x = parseInt(x) ? 1 : 0; var tds = t.getParent().getParent().getElements('td.rate'); tds[x].addClass('active'); tds[(x+1)%2].removeClass('active'); diff --git a/cts/include/TrbNet.pm b/cts/include/TrbNet.pm index eb99be0..c136bbd 100644 --- a/cts/include/TrbNet.pm +++ b/cts/include/TrbNet.pm @@ -180,7 +180,7 @@ sub write { my $data = $_[2]; if (not ref $data) { - printf "// w 0x%04x 0x%04x 0x%08x\n", $self->getEndpoint, $address, $data; +# printf "// w 0x%04x 0x%04x 0x%08x\n", $self->getEndpoint, $address, $data; if ($self->{'_cached_writes'}) { $self->{'_write_cache'}{$address} = $data; } else { @@ -209,4 +209,4 @@ sub addKnownRegister { } -1; \ No newline at end of file +1; -- 2.43.0