[16625] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: cache quota warning

daemon@ATHENA.MIT.EDU (t. belton)
Wed Jan 20 11:40:42 1999

Date: Wed, 20 Jan 1999 11:40:38 -0500 (EST)
From: "t. belton" <tbelton@MIT.EDU>
To: Marc Horowitz <marc@MIT.EDU>
Cc: bug-infoagents@MIT.EDU
In-Reply-To: <199901200252.VAA10230@steve-dallas.mit.edu>

The message comes up too often because the script doesn't know to not warn
about an empty ~/.netscape/cache dir. This will be fixed shortly. Thanks.

-Todd Belton


On Tue, 19 Jan 1999, Marc Horowitz wrote:

>  **** Netscape is eating 2K of your quota! ****
> To correct, this situation, quit Netscape, and then run
>     add infoagents
>     netscape-fix
>     cd
>     rm -rf .netscape/cache
> 
> 2k?  I find it difficult to be worried :-) This warning happens too
> often.  If I use use cache in my homedir intentionally, then clear it
> with the "clear disk quota" button in netscape, the directory
> continues to exist.  This patch gives a little grace for a small cache
> dir:
> 
> *** /mit/infoagents/bin/netscape	Fri Jan 15 13:57:27 1999
> --- /tmp/netscape	Tue Jan 19 21:47:11 1999
> ***************
> *** 148,161 ****
>   
>   # Warn if cache in wrong place
>   if [ -d ${HOME}/.netscape/cache ]; then
> !     quotagone=`${gnubin}/gdu -sk ${HOME}/.netscape/cache | awk '{print $1}'`
> !     echo ""
> !     echo ' **** Netscape is eating '$quotagone'K of your quota! ****'
> !     echo "To correct, this situation, quit Netscape, and then run"
> !     echo "    add infoagents"
> !     echo "    netscape-fix"
> !     echo "    cd"
> !     echo "    rm -rf .netscape/cache"
>   fi
>   
>   # Get default preferences if needed. 3.x and 4.x do it differently.
> --- 148,168 ----
>   
>   # Warn if cache in wrong place
>   if [ -d ${HOME}/.netscape/cache ]; then
> !     set `${gnubin}/gdu -sk ${HOME}/.netscape/cache | \
> ! 	awk '{if ($1>10) { print $1, "warn" } else { print $1, "nowarn"}}'`
> !     quotagone=$1
> !     dowarn=$2
> !     case "$dowarn" in
> ! 	warn)
> ! 	    echo ""
> ! 	    echo ' **** Netscape is eating '$quotagone'K of your quota! ****'
> ! 	    echo "To correct, this situation, quit Netscape, and then run"
> ! 	    echo "    add infoagents"
> ! 	    echo "    netscape-fix"
> ! 	    echo "    cd"
> ! 	    echo "    rm -rf .netscape/cache"
> ! 	    ;;
> !     esac
>   fi
>   
>   # Get default preferences if needed. 3.x and 4.x do it differently.


home help back first fref pref prev next nref lref last post