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
This commit is contained in:
Ian Berry committed 2003-03-24 00:24:41 +00:00
1 parent a19addc7dc
commit e15162019d
1 file changed
+12
+12
View File
@@ -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");