r23792: convert Samba4 to GPLv3
[kai/samba-autobuild/.git] / source4 / smb_server / management.c
index b55a9f7d574cea11986111c30f5fcbd83f66df79..4306b22c30ed1f443f0b39171e75db913431f2a9 100644 (file)
@@ -7,7 +7,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -16,8 +16,7 @@
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
@@ -63,6 +62,7 @@ static NTSTATUS smbsrv_session_information(struct irpc_message *msg,
                
                info->connect_time = timeval_to_nttime(&sess->statistics.connect_time);
                info->auth_time    = timeval_to_nttime(&sess->statistics.auth_time);
+               info->last_use_time= timeval_to_nttime(&sess->statistics.last_request_time);
                i++;
        }       
 
@@ -102,6 +102,7 @@ static NTSTATUS smbsrv_tcon_information(struct irpc_message *msg,
                info->tid          = tcon->tid;
                info->share_name   = tcon->share_name;
                info->connect_time = timeval_to_nttime(&tcon->statistics.connect_time);
+               info->last_use_time= timeval_to_nttime(&tcon->statistics.last_request_time);
                i++;
        }