mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-04 16:49:10 +00:00
[BUGFIX] Added #totalMemory and #freeMemory fakes
This commit is contained in:
@@ -11,9 +11,16 @@ public class RuntimeRedirect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int availableProcessors(Runtime r){
|
public static int availableProcessors(Runtime r){
|
||||||
//lol faking it, fuck ikov
|
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static long totalMemory(Runtime runtime){
|
||||||
|
return (long) 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static long freeMemory(Runtime runtime){
|
||||||
|
return (long) 1024;
|
||||||
|
}
|
||||||
|
|
||||||
public static Process exec(Runtime r,String s){
|
public static Process exec(Runtime r,String s){
|
||||||
if (s.contains("ping")){
|
if (s.contains("ping")){
|
||||||
|
|||||||
Reference in New Issue
Block a user