mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r12012: fix renaming smbsrv_trees -> smbsrv_tcons
metze
This commit is contained in:
parent
1eca19d597
commit
e5654f9791
@ -47,18 +47,18 @@ function show_sessions()
|
|||||||
/*
|
/*
|
||||||
show open tree connects
|
show open tree connects
|
||||||
*/
|
*/
|
||||||
function show_trees()
|
function show_tcons()
|
||||||
{
|
{
|
||||||
var trees = smbsrv_trees();
|
var tcons = smbsrv_tcons();
|
||||||
var sys = sys_init();
|
var sys = sys_init();
|
||||||
if (trees == undefined) {
|
if (tcons == undefined) {
|
||||||
println("No tree connects");
|
println("No tree connects");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
printf("Share Client Connected at\n");
|
printf("Share Client Connected at\n");
|
||||||
printf("-------------------------------------------------------------------------------\n");
|
printf("-------------------------------------------------------------------------------\n");
|
||||||
for (i=0;i<trees.length;i++) {
|
for (i=0;i<tcons.length;i++) {
|
||||||
var info = trees[i];
|
var info = tcons[i];
|
||||||
printf("%-30s %16s %s\n",
|
printf("%-30s %16s %s\n",
|
||||||
info.share_name, info.client_ip, sys.httptime(info.connect_time));
|
info.share_name, info.client_ip, sys.httptime(info.connect_time));
|
||||||
}
|
}
|
||||||
@ -90,7 +90,7 @@ if (options['nbt'] != undefined) {
|
|||||||
show_nbt();
|
show_nbt();
|
||||||
} else {
|
} else {
|
||||||
show_sessions();
|
show_sessions();
|
||||||
show_trees();
|
show_tcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user