mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 22:54:19 +09:00
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:
1 parent
a19addc7dc
commit
e15162019d
1 file changed
+12
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user