Ignore:
Timestamp:
03/30/07 15:21:17 (17 years ago)
Author:
bastiaans
Message:

job_monarch/libtoga.php:

  • Added function to check if jobmond is running
  • Added EmptyImage? of 1 pixel

job_monarch/image.php:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r294 r298  
    502502                return $handler->getHeartbeat();
    503503        }
     504
     505        function isJobmonRunning() {
     506                $handler = $this->xmlhandler;
     507                return $handler->isJobmonRunning();
     508        }
    504509}
    505510
     
    529534                        $cpus = $cpus + $mycpus;
    530535                }
     536        }
     537
     538        function isJobmonRunning() {
     539
     540                if (isset( $this->heartbeat['time'] ))
     541                        return 1;
     542                else
     543                        return 0;
    531544        }
    532545
     
    10181031}
    10191032
     1033class EmptyImage {
     1034
     1035        function draw() {
     1036                $image          = imageCreateTrueColor( 1, 1 );
     1037                $colorwhite     = imageColorAllocate( $image, 255, 255, 255 );
     1038                imageFill( $image, 0, 0, $colorwhite );                         
     1039
     1040                header( 'Content-type: image/png' );
     1041                imagePNG( $image );
     1042                imageDestroy( $image );
     1043        }
     1044}
     1045
    10201046//$my_data = new DataGatherer();
    10211047//$my_data->parseXML();
Note: See TracChangeset for help on using the changeset viewer.