Warning: session_start(): open(/var/lib/php/sessions/sess_g91s4c1gfkf6ibvu2k16umb4v6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!752
p {
if (isMain()) botWithCommandList("Get disk space Bot.");
}
answer {
if "disk space | get disk space" {
File f = userDir();
print("Using dir: " + f);
long total = f.getTotalSpace();
long usable = f.getUsableSpace();
print("Total/usable: " + total + "/" + usable);
S a = "Server disk space: " + toM(usable) + " MB free of " + toM(total) + " MB.";
if (!isWindows()) pcall {
S[] inodes = toLines(backtick("df -hi " + bashQuote(f.getPath()))).get(1).split(" +");
a += " Free inodes: " + inodes[3] + "/" + inodes[1];
}
ret a;
}
if "uptime" ret backtick("uptime");
if "memory stats" {
time { System.gc(); }
ret "GC done in " + getLastTiming() + " ms. " + getMemoryInfoPlusSystemMemory();
}
// memory stats without triggering garbage collection
if "quick memory stats"
ret getMemoryInfo();
if "vm args"
ret "This VM was invoked with: " + getVMCommand();
if "system properties"
ret slackSnippet(structureLines(System.getProperties()));
}