mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes :> thanks sid3windr (and nintendo, and hacked wii roms)
git-svn-id: http://www.observium.org/svn/observer/trunk@554 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -800,7 +800,7 @@ color: #cc0000;
|
||||
|
||||
.contentstyle{
|
||||
border: 1px solid #aaaaaa;
|
||||
width: 1175px;
|
||||
width: 1176px;
|
||||
margin-bottom: 1em;
|
||||
padding: 10px;
|
||||
float: left;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM ipv4_mac WHERE interface_id = '".$interface['interface_id']."'";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
$descr = str_replace("mounted on: ", "", $descr);
|
||||
$descr = str_replace(": var file system", "", $descr);
|
||||
|
||||
if((strstr($fstype, "FixedDisk") || strstr($fstype, "Ram") || strstr($fstype, "VirtualMemory")) && $size > '0' && $allow) {
|
||||
if((strstr($fstype, "FlashMemory") || strstr($fstype, "FixedDisk") || strstr($fstype, "Ram") || strstr($fstype, "VirtualMemory")) && $size > '0' && $allow) {
|
||||
if(mysql_result(mysql_query("SELECT count(storage_id) FROM `storage` WHERE hrStorageIndex = '$hrStorageIndex' AND host_id = '".$device['device_id']."'"),0) == '0') {
|
||||
$query = "INSERT INTO storage (`host_id`, `hrStorageIndex`, `hrStorageType`, `hrStorageDescr`,`hrStorageSize`,`hrStorageAllocationUnits`) ";
|
||||
$query .= "values ('".$device['device_id']."', '$hrStorageIndex', '$fstype', '$descr', '$size', '$units')";
|
||||
|
||||
Reference in New Issue
Block a user