diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/connectionVTP.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/connectionVTP.c b/server/connectionVTP.c index 55c92de..b3be57e 100644 --- a/server/connectionVTP.c +++ b/server/connectionVTP.c @@ -1377,7 +1377,11 @@ bool cConnectionVTP::CmdSTAT(const char *Option) if (*Option) { if (strcasecmp(Option, "DISK") == 0) { int FreeMB, UsedMB; +#if APIVERSNUM < 20102 int Percent = VideoDiskSpace(&FreeMB, &UsedMB); +#else + int Percent = cVideoDirectory::VideoDiskSpace(&FreeMB, &UsedMB); +#endif Reply(250, "%dMB %dMB %d%%", FreeMB + UsedMB, FreeMB, Percent); } else if (strcasecmp(Option, "NAME") == 0) { |