diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-01-05 23:25:03 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-01-05 23:25:03 +0000 |
| commit | d7e92752bb30e0b197e940d978bfa635e27bead0 (patch) | |
| tree | 4de9ddacfbdda1b7653480b684c07a0acbb9eedb /Cmd.c | |
| parent | 87cd041888dbeefe040b44b2d0a6945d8b850630 (diff) | |
New upstream version 6.0.24.55+repackupstream/6.0.24.55+repack
Diffstat (limited to 'Cmd.c')
| -rw-r--r-- | Cmd.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1005,8 +1005,16 @@ VOID CMDSTATS(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, struct if (Port == 0)
{
- uptime = FormatUptime(STATSTIME);
- Bufferptr = Cmdprintf(Session, Bufferptr, "%s", uptime);
+ struct tm * TM;
+ char UPTime[50];
+ time_t szClock = STATSTIME * 60;
+
+ TM = gmtime(&szClock);
+
+ sprintf(UPTime, "Uptime (Days Hours Mins) %.2d:%.2d:%.2d\r",
+ TM->tm_yday, TM->tm_hour, TM->tm_min);
+
+ Bufferptr = Cmdprintf(Session, Bufferptr, "%s", UPTime);
Bufferptr = Cmdprintf(Session, Bufferptr, "Semaphore Get-Rel/Clashes %9d%9d\r",
Semaphore.Gets - Semaphore.Rels, Semaphore.Clashes);
|
