diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-01-05 23:25:05 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-01-05 23:35:13 +0000 |
| commit | b060bf5d391262053e28a3771bdcbc781a24e92b (patch) | |
| tree | 05a61bb7700af441a64d20b48e1a947ec84254c4 /Cmd.c | |
| parent | 33d8e6f75a614ecc1395913036f1467ad4886257 (diff) | |
| parent | d7e92752bb30e0b197e940d978bfa635e27bead0 (diff) | |
Update upstream source from tag 'upstream/6.0.24.55+repack'debian/6.0.24.55+repack-1_hibbian+1
Update to upstream version '6.0.24.55+repack'
with Debian dir ba150ac05971e30a00ff5ef6dc346e710e532687
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);
|
