line-break fix
This commit is contained in:
parent
550f1ee1cb
commit
6dcf6c037b
|
@ -23,7 +23,7 @@ webstat () {
|
|||
echo -e "<img src=\"data:image/png;base64,$(vnstati -i $interface1 -y -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface1 -m -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface1 -d -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface1 -h -o - | base64 -w0)\">"
|
||||
#echo "<pre>$(vnstat -i $interface1 -h | tail -n 9)</pre>"
|
||||
if [ ! -z $interface2 ]; then
|
||||
echo -e "<img src=\"data:image/png;base64,$(vnstati -i $interface2 -y -o - | base64 -w0)\"><br><br><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -m -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -d -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -h -o - | base64 -w0)\">"
|
||||
echo -e "<br><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -y -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -m -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -d -o - | base64 -w0)\"><br><img src=\"data:image/png;base64,$(vnstati -i $interface2 -h -o - | base64 -w0)\">"
|
||||
#echo "<pre>$(vnstat -i $interface2 -h | tail -n 9)</pre>"
|
||||
fi
|
||||
echo '</body></html>'
|
||||
|
|
Loading…
Reference in New Issue