summaryrefslogtreecommitdiffstats
path: root/layout.h
diff options
context:
space:
mode:
authorMichael Paquier <mpaquier@vmware.com>2013-06-09 23:36:25 -0700
committerMark Wong <markwkm@gmail.com>2013-06-10 20:15:25 -0700
commitcda7c8e8cf19ccbaec9bb9d286b021ea7fbd5228 (patch)
treed44f664a5d01ea9be133e417e1233a87f4a6ea70 /layout.h
parent6afd1cdf3c45964812b6b1304194f4b49e896b96 (diff)
watch the database activity or TPS
This implementation is based on data fetched from pg_stat_database. It is then analyzed to obtain some information like the TPS. This patch is generic as it is based only on libpq, so all the platforms can use that.
Diffstat (limited to 'layout.h')
-rw-r--r--layout.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/layout.h b/layout.h
index aa946df..b62b0dc 100644
--- a/layout.h
+++ b/layout.h
@@ -4,6 +4,8 @@
* This file defines the default locations on the screen for various parts
* of the display. These definitions are used by the routines in "display.c"
* for cursor addressing.
+ *
+ * Portions Copyright (c) 2013 VMware, Inc. All Rights Reserved.
*/
#ifndef _LAYOUT_H_
@@ -27,13 +29,15 @@
#define Y_CPUSTATES 2
#define X_MEM 8
#define Y_MEM 3
+#define X_DB 0
+#define Y_DB 4
#define X_SWAP 6
-#define Y_SWAP 4
-#define Y_MESSAGE 4
+#define Y_SWAP 5
+#define Y_MESSAGE 5
#define X_HEADER 0
-#define Y_HEADER 5
+#define Y_HEADER 6
#define X_IDLECURSOR 0
-#define Y_IDLECURSOR 4
-#define Y_PROCS 6
+#define Y_IDLECURSOR 5
+#define Y_PROCS 7
#endif /* _LAYOUT_H_ */