aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: A little add-on to aStats  (Read 3147 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
A little add-on to aStats
« on: December 06, 2003, 03:38:33 PM »

I did this little add-on on the html and shell part of aStats :

In function getVal

[code:1]
......
if [ -e >$HOMEUSER/.eMule> ]; then
        TEMPDIR=`grep TempDir >$HOMEUSER/.eMule> | cut -d >=> -f 2`
        DOWNLOAD=`ls >$TEMPDIR>/*part.met | wc -w`
 fi
...
[/code:1]

in function checkOff and checkOn fonctions
[code:1]
...
                echo >Downloading $DOWNLOAD file(s)>
...
[/code:1]

in function gen_html_and_graphsign
[code:1]
echo >s€#DOWNLOAD#€$DOWNLOAD€g> >> /tmp/aStats-Graphic-Signature-Generation
[/code:1]

added this line to tmp.html
after "Shared files"
[code:1]
             style=>vertical-align: top; background-color: rgb(255, 255, 255); width: 21%;>>Downloading
Files :

           
             style=>vertical-align: top; background-color: rgb(255, 255, 255); width: 79px;>>#DOWNLOAD#
           

           
         
         
[/code:1]



Just to let you know ;-)
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)