allow engineering units (e.g. 400M, 1G) as service class limits

This commit is contained in:
redmatrix
2016-04-28 21:02:27 -07:00
parent 30a6ae3daa
commit bb96f44861
9 changed files with 16 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ class Hook {
$r = q("DELETE FROM `hook` where `hook` = '%s' and `file` = '%s' and `function` = '%s'",
dbesc($hook),
dbesc($file),
dbesc($function),
dbesc($function)
);
$r = q("INSERT INTO `hook` (`hook`, `file`, `function`, `priority`, `hook_version`) VALUES ( '%s', '%s', '%s', %d, %d )",
@@ -61,7 +61,7 @@ class Hook {
static public function unregister_by_file($file) {
$r = q("DELETE FROM hook WHERE `file` = '%s' ",
dbesc($file),
dbesc($file)
);
return $r;