From e15162019d20dd05cf84b8396de20cfa5847e201 Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Mon, 24 Mar 2003 00:24:41 +0000 Subject: [PATCH] keep a static cdef cache for special items git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@763 860744bd-22fc-0310-8c96-e9fe5004b5ca --- install/update_to_0_8.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install/update_to_0_8.php b/install/update_to_0_8.php index fcb7118994..ec336bda9c 100644 --- a/install/update_to_0_8.php +++ b/install/update_to_0_8.php @@ -619,6 +619,18 @@ function update_database($database_old, $database_username, $database_password) } } + /* Turn Bytes into Bits */ + $cdef_cache[2] = 2; + + /* Make Stack Negative */ + $cdef_cache[3] = 3; + + /* Make Per 5 Minutes */ + $cdef_cache[4] = 4; + + /* Total All Data Sources */ + $cdef_cache[7] = 12; + db_execute("truncate table $database_default.graph_local"); db_execute("delete from $database_default.graph_templates_graph where local_graph_id > 0"); db_execute("delete from $database_default.graph_templates_item where local_graph_id > 0");