projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0bee8a
)
Fix subnet usage
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 28 Apr 2009 05:48:39 +0000
(
05:48
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 28 Apr 2009 05:48:39 +0000
(
05:48
+0000)
dhcpd/list_leases.cgi
patch
|
blob
|
history
diff --git
a/dhcpd/list_leases.cgi
b/dhcpd/list_leases.cgi
index
7abd666
..
7c114b7
100755
(executable)
--- a/
dhcpd/list_leases.cgi
+++ b/
dhcpd/list_leases.cgi
@@
-104,7
+104,9
@@
else {
&html_escape($subnet->{'comment'}),
$subnet->{'ips'},
$used,
- int(100*$used / $subnet->{'ips'})."%",
+ $subnet->{'ips'} ?
+ int(100*$used / $subnet->{'ips'})."%" :
+ "",
]);
}
print &ui_columns_end();