IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17755


Ignore:
Timestamp:
May 19, 2008, 4:39:56 PM (18 years ago)
Author:
bills
Message:

I wasn't dealing with run()'s output buf properly.
Turn of use of Df for now since the perl module isn't found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/web/cgi/dsgetindex

    r17499 r17755  
    149149sub html_index {
    150150
    151     my $out_buf = $_[0];
     151    my $out_array_ref = shift;
     152    my $outBuf = join( "", @$out_array_ref);
     153
    152154    #print header('text/plain', '200 OK');
    153155
     
    155157    #print @$out_buf;
    156158    pprint_pre();
    157     my @lines = split /^/, $out_buf->[0];
     159    my @lines = split /^/, $outBuf;
    158160    foreach my $line (@lines) {
    159161        pprint($line);
     
    169171
    170172sub pprint_pre {
    171     use Filesys::Df;
     173    #use Filesys::Df;
    172174
    173175    print header('text/html', '200 OK');
     
    175177
    176178        # get free space
    177         my $ref = df($DS_ROOT);
    178         printf '<p>Free space: %.2fG (%.1f%%)</p>',
    179                 $ref->{bfree}/(1024*1024),
    180                 100.0*$ref->{bfree}/$ref->{blocks};
    181         print "\n";
     179#       my $ref = df($DS_ROOT);
     180#       printf '<p>Free space: %.2fG (%.1f%%)</p>',
     181#               $ref->{bfree}/(1024*1024),
     182#               100.0*$ref->{bfree}/$ref->{blocks};
     183#        print "\n";
    182184
    183185        # return link
Note: See TracChangeset for help on using the changeset viewer.