File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ int sysinfo(struct sysinfo *info){
12
12
// we need the real sysinfo function address
13
13
pt = dlsym (RTLD_NEXT ,"sysinfo" );
14
14
//printf("pt: %x\n", *(char *)pt);
15
-
15
+
16
16
// call the real sysinfo system call
17
17
int real_return_val = ((real_sysinfo )pt )(info );
18
18
19
19
// but then modify its returned totalram field if necessary
20
- // because sqlserver needs to believe it has 2GiB physical
21
- // memory
22
- if ( info -> totalram < 1024l * 1024l * 1024l * 2l ){ // 2GiB
23
- info -> totalram = 1024l * 1024l * 1024l * 2l ;
20
+ // because sqlserver needs to believe it has "2000 megabytes"
21
+ // physical memory
22
+ if ( info -> totalram < 1000l * 1000l * 1000l * 2l ){ // 2000 megabytes
23
+ info -> totalram = 1000l * 1000l * 1000l * 2l ;
24
24
}
25
25
26
26
return real_return_val ;
You can’t perform that action at this time.
0 commit comments