Commit d609d604 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Add understanding of 1000 base T and 1000 base SX.

Tidy up help syntax.
Not sure why this has a VersionNum file all of its own,but hey.

Version 0.02. Tagged as 'showstat-0_02'
parent 429ec503
/* This file is included by msgs.c as "LocalRes:Strings" */ /* This file is included by msgs.c as "LocalRes:Strings" */
static const char *application_banner = static const char *application_banner =
"DCI4 Statistics Display " Module_FullVersion " (" Module_Date ")\n" "DCI4 Statistics Display " Module_FullVersion " (" Module_ApplicationDate ")\n"
"Copyright (C) Element 14 Ltd. 1999. All rights reserved.\n"; "Copyright (C) Element 14 Ltd. 1999. All rights reserved.\n";
static const char *application_help = static const char *application_help =
"Syntax: showstat [-help] [-v] [-file <filename>] [-type <type>] " "\nUsage: showstat [-help] [-v] [-file <filename>] [-type <type>] [[<device>|<interface>] ...]\n"
"[[<device>|<interface>] ...]\n" "Options: -help Shows this help message\n"
"\n" " -v Verbose mode - shows more detail\n"
"-help Shows this help message\n" " -file Send output to <filename>\n"
"-v Verbose mode - shows more detail\n" " -type Show extended statistics for <type> modules only.\n"
"-file Send output to <filename>\n" " Types known 0: general modules\n"
"-type Show extended statistics for <type> modules only. Types known:\n" " 1: protocol modules\n"
" 0: general modules\n" " 2: device drivers\n"
" 1: protocol modules\n" " 3: mbuf managers\n"
" 2: device drivers\n"
" 3: mbuf managers\n"
"\n" "\n"
"Device names are the identifiers for the drivers eg. \"eh\" or \"ea\"\n" "Device names are the identifiers for the drivers eg. \"eh\" or \"ea\"\n"
"Interface names are device names with a unit number eg. \"eh0\" or \"ea2\"\n"; "Interface names are device names with a unit number eg. \"eh0\" or \"ea2\"\n";
...@@ -60,7 +58,9 @@ static const char *interface_types[] = { ...@@ -60,7 +58,9 @@ static const char *interface_types[] = {
"ATM 25.6", "ATM 25.6",
"ATM 155", "ATM 155",
"ATM + Relay", "ATM + Relay",
"ATM F-LANE" "ATM F-LANE",
"1000baseSX",
"1000baseT"
}; };
static const char *interface_type_unknown = "Unknown (type %d)"; static const char *interface_type_unknown = "Unknown (type %d)";
......
/* (0.01) /* (0.02)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.68.
* *
*/ */
#define Module_MajorVersion_CMHG 0.01 #define Module_MajorVersion_CMHG 0.02
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 24 May 1999 #define Module_Date_CMHG 17 Jan 2003
#define Module_MajorVersion "0.01" #define Module_MajorVersion "0.02"
#define Module_Version 1 #define Module_Version 2
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "24 May 1999" #define Module_Date "17 Jan 2003"
#define Module_FullVersion "0.01" #define Module_ApplicationDate "17-Jan-03"
#define Module_ComponentName "showstat"
#define Module_ComponentPath "RiscOS/Sources/SystemRes/Internet/Sources/showstat"
#define Module_FullVersion "0.02"
#define Module_HelpVersion "0.02 (17 Jan 2003)"
#define Module_LibraryVersionInfo "0:2"
...@@ -76,7 +76,6 @@ static void showstat_heading(const char *heading, const void *value) ...@@ -76,7 +76,6 @@ static void showstat_heading(const char *heading, const void *value)
static void banner(const char *text) static void banner(const char *text)
{ {
fputs(text, output_device); fputs(text, output_device);
newline();
} }
/***********/ /***********/
...@@ -558,7 +557,6 @@ int main(int argc, char *argv[]) ...@@ -558,7 +557,6 @@ int main(int argc, char *argv[])
if (showstat_display(c->chd_dib, argc, argv, stat_providers_mask == ULONG_MAX)) { if (showstat_display(c->chd_dib, argc, argv, stat_providers_mask == ULONG_MAX)) {
newline(); newline();
showstat_driver(c->chd_dib); showstat_driver(c->chd_dib);
newline();
} }
} }
...@@ -567,7 +565,6 @@ int main(int argc, char *argv[]) ...@@ -567,7 +565,6 @@ int main(int argc, char *argv[])
if ((1UL<<s->type) & stat_providers_mask) { if ((1UL<<s->type) & stat_providers_mask) {
newline(); newline();
showstat_provider(s); showstat_provider(s);
newline();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment