diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-02 07:02:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:59 -0500 |
commit | d72e8aacaffeb2fbfb0a79c1a1a1ca10a52cf4bf (patch) | |
tree | 04c1780a506f35986747ce4bc8a3768221315b35 /source4/scripting | |
parent | 540483c01b0b03ecd0c9b8824b124542a12fce24 (diff) | |
download | samba-d72e8aacaffeb2fbfb0a79c1a1a1ca10a52cf4bf.tar.gz samba-d72e8aacaffeb2fbfb0a79c1a1a1ca10a52cf4bf.tar.bz2 samba-d72e8aacaffeb2fbfb0a79c1a1a1ca10a52cf4bf.zip |
r12012: fix renaming smbsrv_trees -> smbsrv_tcons
metze
(This used to be commit e5654f9791a2786e45108216344b2daea3ad9d91)
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/smbstatus | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus index d5610023d6..ea41289dce 100755 --- a/source4/scripting/bin/smbstatus +++ b/source4/scripting/bin/smbstatus @@ -47,18 +47,18 @@ function show_sessions() /* show open tree connects */ -function show_trees() +function show_tcons() { - var trees = smbsrv_trees(); + var tcons = smbsrv_tcons(); var sys = sys_init(); - if (trees == undefined) { + if (tcons == undefined) { println("No tree connects"); return; } printf("Share Client Connected at\n"); printf("-------------------------------------------------------------------------------\n"); - for (i=0;i<trees.length;i++) { - var info = trees[i]; + for (i=0;i<tcons.length;i++) { + var info = tcons[i]; printf("%-30s %16s %s\n", info.share_name, info.client_ip, sys.httptime(info.connect_time)); } @@ -90,7 +90,7 @@ if (options['nbt'] != undefined) { show_nbt(); } else { show_sessions(); - show_trees(); + show_tcons(); } return 0; |