[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] patch to multimon.c (UPS Support)



Hi Here is a small Patch to multimon.c so that the page auto refreshes ever 10 seconds.

int main()
{
        FILE    *conf;
        time_t  tod;
        char    buf[256], fn[256], addr[256], timestr[256], *rest;
        int     restofs;
        ftype   *tmp;

        /* print out header first so we can give error reports */
        printf ("Content-type: text/html\n");
        printf ("\n");

        printf ("<HTML>\n");
        printf ("<HEAD><TITLE>Multimon: UPS Status Page</TITLE></HEAD>\n");
        printf ("<BODY BGCOLOR=\"#FFFFFF\">\n");
        printf ("<META HTTP-EQUIV="Refresh" CONTENT="10">\n");

        readconf();


I have also done the same in the upsstats.c and upsimage.c

Regards Barry

---------------------------------------------------------------------------- ------------------------------
Barry Titmarsh BMT1-RIPE           Nacamar Ltd (Sheringham Office)
                                                  Knole House 38 Cromer Rd
                                                  Sheringham Norfolk NR268RR
e-mail: barry@xxxxxxxxxxxxxx      voice: +44-1263-821-844
www: www.nacamar.net.uk
---------------------------------------------------------------------------- ------------------------------