IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18015


Ignore:
Timestamp:
Jun 9, 2008, 10:08:46 AM (18 years ago)
Author:
jhoblitt
Message:

variable rename for clarity

File:
1 edited

Legend:

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

    r16262 r18015  
    33# Copyright (C) 2007-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-stat,v 1.1 2008-01-28 20:43:02 jhoblitt Exp $
     5# $Id: neb-stat,v 1.2 2008-06-09 20:08:46 jhoblitt Exp $
    66
    77use strict;
     
    3939    unless defined $neb;
    4040
    41 my $keys = $neb->stat($key);
     41my $stat = $neb->stat($key);
     42die "nebulous key: $key not found" unless $stat;   
    4243my $instances = $neb->find_instances($key);
     44die "no instances found" unless $instances;   
    4345
    4446no warnings qw(uninitialized);
    4547print
    46     "object id:     ", @$keys[0], "\n",
    47     "key:           ", @$keys[1], "\n",
    48     "read lock:     ", @$keys[2], "\n",
    49     "write lock:    ", @$keys[3], "\n",
    50     "epoch:         ", @$keys[4], "\n",
    51     "mtime:         ", @$keys[5], "\n",
    52     "n instances:   ", @$keys[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    "n instances:   ", @$stat[6], "\n",
    5355    "instance location:\n", " " x 4,
    5456    join("\n" . " " x 4, @$instances), "\n";
Note: See TracChangeset for help on using the changeset viewer.