summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-10-17 13:02:46 +0000
committerBruce Evans <bde@FreeBSD.org>1998-10-17 13:02:46 +0000
commit794389cf5d0795b6a8fee8f752d53840aa57aa17 (patch)
treea028fe4622d66004cf792688d4333928544f3e47
parentb5bd72112d0f952b2d2be85f60f52270b22f5104 (diff)
Notes
-rw-r--r--sbin/vinum/list.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c
index 40807480fff7..f4520f198769 100644
--- a/sbin/vinum/list.c
+++ b/sbin/vinum/list.c
@@ -35,7 +35,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: list.c,v 1.12 1998/08/10 05:15:06 grog Exp grog $
+ * $Id: list.c,v 1.1.1.1 1998/09/16 05:57:36 grog Exp $
*/
#include <ctype.h>
@@ -124,17 +124,21 @@ vinum_li(int object, enum objecttype type)
void
vinum_ldi(int driveno, int recurse)
{
+ time_t t;
+
get_drive_info(&drive, driveno);
if (drive.state != drive_unallocated) {
if (verbose) {
printf("Drive %s:\tDevice %s\n",
drive.label.name,
drive.devicename);
+ t = drive.label.date_of_birth.tv_sec;
printf("\t\tCreated on %s at %s",
drive.label.sysname,
- ctime(&drive.label.date_of_birth.tv_sec));
+ ctime(&t));
+ t = drive.label.last_update.tv_sec;
printf("\t\tConfig last updated %s", /* care: \n at end */
- ctime(&drive.label.last_update.tv_sec));
+ ctime(&t));
printf("\t\tSize: %16qd bytes (%qd MB)\n\t\tUsed: %16qd bytes (%qd MB)\n"
"\t\tAvailable: %11qd bytes (%d MB)\n",
drive.label.drive_size, /* bytes used */