home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
184.lha
/
Storage4.DOC
< prev
next >
Wrap
Text File
|
1988-04-28
|
7KB
|
221 lines
Disk Storage 4.00 By: Khalid Aldoseri.
----------------------------------------
This is a small program that will run from either the WB or CLI. It will
open its own window and display a list of ALL currently mounted devices,
including hard disk partitions. The window looks like this:
Name: Size Free Alarm
DF0: 837 10 50
DF1: 837 129 50
DF2: - No Disk Present -
DH0: 19864 6742 993
DH1: 19734 1118 986
The Size column gives the actual capacity of the device in Kilobytes.
The Free columns gives the free space in the device. The Alarm column
is the level at (or below) which the program will highlight the device
row to warn you that there isn't much free space left in the device. If
the free space drops below the Alarm level while the program is running
it will flash all screens five times while also flashing the relevant item.
(P.S. The program will correctly reflect the size of the WB1.3 Fast File
System (FFS) hard disk partitions, and any other new disk formats.)
The Alarm level normally is 5% of the total capacity of the device
with a minimum alarm level of 50k. You can change the Alarm level by
clicking on the device row you want to change. A gadget will appear at
the bottom of the window. Enter the new Alarm level and hit return.
* If a floppy disk has the write-protect tab on, an asterisk (*) will
appear next to the 'Free' number corresponding to that disk.
The program will update its display every 3 seconds. If you need to
get an immediate update just click on the first line, (the one with
the titles.) The program's window will be as big as it needs to be to
display all the mounted devices. The limit for that is 15 devices.
* If you want the program to update its display more/less than 3 seconds,
there is a small gadget near the upper right hand side of the window,
(next to the 'Alarm' text). Just click on this gadget and move it up
or down to decrease or increase update time. The window title will
display the update rate as long as you are holding down the mouse button.
If you select the 'No Update' setting, then you can manually update the
window by clicking on either the memory display box, or the top line
of the window. (the one with 'Name Full Free Alarm').
At the bottom of the window there is a small box with the current
free memory in the system. This is displayed as Chip, Fast and Total,
or as Chip, Fast and Static if there is any free memory above the normal
system addressing space (e.g. the CSA 32-bit memory board.)
The program has a menu attached to it with the following options:
CLEAR ALL:
This will reset the program to its original startup state.
CLEAR SELECTIONS:
This will clear all currently selected disks. (More on this later.)
REMOVE SELECTED DISKS:
This will remove disks from the display list. To do this just click
twice on each disk name you want to remove (the background color of
the line will change twice) and then select this menu item. You
can remove more than one disk at a time. Any disk removed will NOT
be checked for its alarm level any more.
REMOVE FLOPPY DISKS:
This will remove all floppy disks from the display list.
REMOVE ALL EXCEPT FLOPPIES:
No explanation needed!
REMOVE DISKS < (LESS THAN) ALARM LEVEL:
This will remove all disks that are currently less that the Alarm
Level. (i.e. are currenly highlighted)
REMOVE DISKS > (MORE THAN) ALARM LEVEL:
The opposite of the above.
REMOVE ALL DISKS:
Removes everything, and just keeps the memory display on.
SWITCH MEMORY DISPLAY ON/OFF:
Turns the memory display on or off.
* SWITCH TIME DISPLAY ON/OFF:
This turns on/off time and date display on the top of the program's
window.
* DISPLAY MEMORY CHUNKS/TOTAL:
When Display Memory Chunks is selected, the program will display the
number of free memory chunks in the system. This gives you an idea
of how fragmented memory is. This number appears instead of the
memory total.
* DISPLAY DISK SIZE/USAGE:
This toggles the second column of numbers between actual disk size
in kilobytes, or how full is the disk (in percentage terms.)
QUIT:
Guess what this does?!
Note: This program takes very little processor time. For example,
with three disks displayed, the program will only consume about 1/2 % of
processing time at the most (at an update rate of 5 seconds.) Its memory
usage is around 11-15k.
Any comments, suggestions, complaints, etc. should be sent to me on
Compuserve ID number 75166,2531.
This program is placed in the Public Domain, you can spread it as
much as you like as long as you keep this file with it.
I hope you find this program as useful as I do.
Khalid Aldoseri.
CIS: 75166,2531.
* Marks items new in Version 4.00.
Version 4.00 Comments:
- Fixed problem with PAR: or SER: appearing on display.
- Added the following features:
- Disk Full Percentage display.
- Memory chunks (fragmentation) display.
- 'Disk Protected' display.
- Variable update (refresh) time.
- The time/date display will only be updated as often as the update
time you selected.
- Be careful when selecting an update rate of 1 second. This can
take too much time from the processor. 2 seconds is okay, but I
find the optimal to be between 10 and 15 seconds if you are not
using drives a lot, and between 3 and 5 if you are. When
- The program's window will always come up as inactive. It will
also turn itself into inactive after a fixed period. (around
10 to 60 seconds, depending on the update rate.)
- The program now knows about WBLace V3.00 or higher (by the same
author), and will close its window for about 2 seconds when
WBLace requests this from it. This is in order to allow WBLace
to change the Workbench Interlace setting on or off. If you don't
have WBLace, you can find in the AmigaForum on Compuserve in DL13
as WBLCE3.ARC.
Known Bugs:
- From time to time, the program seems to forget to update the
time/date display. I am looking into this problem.
PLEASE:
If you have any ideas on what can be added to this program, easyplex
me with your ideas, as I am running out of them!