IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24644


Ignore:
Timestamp:
Jul 2, 2009, 2:18:56 PM (17 years ago)
Author:
jhoblitt
Message:

add ->stat() total instances field

Location:
trunk/Nebulous
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-stat

    r24348 r24644  
    4646no warnings qw(uninitialized);
    4747print
    48     "object id:     ", @$stat[0], "\n",
    49     "key:           ", @$stat[1], "\n",
    50     "read lock:     ", @$stat[2], "\n",
    51     "write lock:    ", @$stat[3], "\n",
    52     "epoch:         ", @$stat[4], "\n",
    53     "mtime:         ", @$stat[5], "\n",
    54     "n instances:   ", @$stat[6], "\n",
     48    "object id:             ", @$stat[0], "\n",
     49    "key:                   ", @$stat[1], "\n",
     50    "read lock:             ", @$stat[2], "\n",
     51    "write lock:            ", @$stat[3], "\n",
     52    "epoch:                 ", @$stat[4], "\n",
     53    "mtime:                 ", @$stat[5], "\n",
     54    "available instances:   ", @$stat[6], "\n",
     55    "total instances:       ", @$stat[7], "\n",
    5556    "instance location:\n", " " x 4,
    5657    join("\n" . " " x 4, @$instances), "\n";
  • trunk/Nebulous/t/63_client_stat.t

    r13203 r24644  
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 12;
     12plan tests => 13;
    1313
    1414use lib qw( ./t ./lib );
     
    3030    my $info = $neb->stat( "foo" );
    3131
    32     is( scalar @$info, 7, "number of columns" );
     32    is( scalar @$info, 8, "number of columns" );
    3333}
    3434
     
    4343    my $info = $neb->stat( "foo" );
    4444
    45     is( scalar @$info, 7,                       "number of columns" );
     45    is( scalar @$info, 8,                       "number of columns" );
    4646    is( @$info[0], 1,                           "so_id" );
    4747    is( @$info[1], "foo",                       "ext_id" );
     
    5050    like( @$info[4], qr/....-..-.. ..:..:../,   "epoch" );
    5151    like( @$info[5], qr/....-..-.. ..:..:../,   "mtime" );
    52     is( @$info[6], 1,                           "instances" );
     52    is( @$info[6], 1,                           "available instances" );
     53    is( @$info[7], 1,                           "total instances" );
    5354}
    5455
Note: See TracChangeset for help on using the changeset viewer.