File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 94
94
$ swaptotal = $ swap [1 ];
95
95
$ swapused = $ swap [2 ];
96
96
$ swapfree = $ swap [3 ];
97
- $ swapperc = round (($ swapused /$ swaptotal )*100 );
97
+ if ($ swaptotal == 0 ){
98
+ $ swapperc = 0 ;
99
+ }else {
100
+ $ swapperc = round (($ swapused /$ swaptotal )*100 );
101
+ }
102
+
98
103
}
99
104
//
100
105
if (isset ($ _GET ["statemail " ])){
101
-
106
+
102
107
$ name_tag = array ();
103
108
$ name_tag [0 ] = "Sunday " ;
104
109
$ name_tag [1 ] = "Monday " ;
130
135
//echo $command;
131
136
$ output =shell_exec ($ command );
132
137
echo "<pre> $ output</pre><br> " ;
133
-
138
+
134
139
$ a1 = "\n<div class= \"testbox \" style= \"border: 1px dotted green; position: absolute; margin:0px; padding:10px; z-index:5; background-color:#ffffcc; color:#000000; \"> \n" ;
135
140
$ a2 = " \n </div> \n" ;
136
141
$ ausgabe = $ a1 . "Status mail was sent!<br><button onclick='location.replace( \"../index.php \");'>Zurück</button> " . $ a2 ;
You can’t perform that action at this time.
0 commit comments