From c1e5cfc98e051842614ea499c3a9a07762eb9aaa Mon Sep 17 00:00:00 2001
From: Peter Zumbruch
Date: Fri, 8 Nov 2013 17:27:06 +0100
Subject: [PATCH] added stats.db into startup of IOCs to allow view from
Detector Controls 'cpu' gui
---
ebctrl/ioc/ebctrlApp/Db/Makefile | 1 +
ebctrl/ioc/ebctrlApp/Db/stats.db | 51 ++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100644 ebctrl/ioc/ebctrlApp/Db/stats.db
diff --git a/ebctrl/ioc/ebctrlApp/Db/Makefile b/ebctrl/ioc/ebctrlApp/Db/Makefile
index bcbed38..a72c559 100644
--- a/ebctrl/ioc/ebctrlApp/Db/Makefile
+++ b/ebctrl/ioc/ebctrlApp/Db/Makefile
@@ -26,6 +26,7 @@ DB += trigtype.db
DB += cpu.db
DB += totalevtstat.db
DB += daqmon.db
+DB += stats.db
#----------------------------------------------------
# If .db template is not named *.template add
diff --git a/ebctrl/ioc/ebctrlApp/Db/stats.db b/ebctrl/ioc/ebctrlApp/Db/stats.db
new file mode 100644
index 0000000..8352b62
--- /dev/null
+++ b/ebctrl/ioc/ebctrlApp/Db/stats.db
@@ -0,0 +1,51 @@
+record(sub, "$(PREFIX)$(IOC):asg:asinit")
+{
+ field(DESC, "security reload")
+ field(SCAN, "Passive")
+ field(INAM, "asSubInit")
+ field(SNAM, "asSubProcess")
+ field(ASG, "super")
+}
+record(calc, "$(PREFIX)$(IOC):stats:scan1")
+{
+ field(DESC, "Counter")
+ field(SCAN,"1 second")
+ field(CALC, "(A