From 6c63347a6ae2f25de2bf8cf9aea93ea31a786418 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 24 May 2008 15:41:37 +0000 Subject: Modified health controller to use cfe's and added support for multiple floppy and hard drives. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1181 ab2d0c66-481e-0410-8bed-d214d4d58bed --- health-storage-html.lsp | 80 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 53 insertions(+), 27 deletions(-) (limited to 'health-storage-html.lsp') diff --git a/health-storage-html.lsp b/health-storage-html.lsp index f8f5b73..4e9a0a8 100644 --- a/health-storage-html.lsp +++ b/health-storage-html.lsp @@ -1,39 +1,65 @@ +"..disk.value.."\n") +io.write('\n') +io.write(" \n") +io.write(" \n") +if tonumber(disk.used) > 0 then + io.write(' \n') +end +if tonumber(disk.used) < 100 then + io.write(' \n') +end +io.write(' \n') +io.write(" \n") +io.write("
0%
') + if ( tonumber(disk.used) > 10) then io.write(disk.used .. "%") end + io.write('
') + if ( 90 > tonumber(disk.used)) then io.write((100-disk.used) .. "%") end + io.write('
100%
\n") +io.write('\n') +io.write(" \n") +io.write(' \n') +io.write(" \n") +io.write("
'..name..'=Used=Free
\n") +end ?> +

Storage

Floppy capacity

-
- - - - - - -
0%
10) then io.write(view.storage.floppycapacity.used .. "%") end ?>
tonumber(view.storage.floppycapacity.used)) then io.write((100-view.storage.floppycapacity.used) .. "%") end ?>
100%
- - - - -
=Used=Free
+ +No Floppy mounted -

Disk capacity

-
+

Harddrive capacity

+ +No Harddrive mounted + - - - - - -
0%
10) then io.write(view.storage.hdcapacity.used .. "%") end ?>
tonumber(view.storage.hdcapacity.used)) then io.write((100-view.storage.hdcapacity.used) .. "%") end ?>
100%
- - - - -
=Used=Free
+

RAM Disk capacity

+ +No RAM Disk mounted +

Disk partitions

-
+
+ -- cgit v1.2.3