summaryrefslogtreecommitdiff
blob: 384f17acfbf4bf636c53796aed54b0b60d10a7b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/libMUSCLE/globalslinux.cpp
+++ b/libMUSCLE/globalslinux.cpp
@@ -159,7 +159,7 @@
 			}
 		return DEFAULT_RAM;
 		}
-	int Bytes = atoi(pMem+9)*1000;
+	long Bytes = atol(pMem+9)*1000;
 	return ((double) Bytes)/1e6;
 	}
 
--- a/libMUSCLE/progress.cpp
+++ b/libMUSCLE/progress.cpp
@@ -48,7 +48,7 @@
 	if (MB < 0)
 		return "";
 
-	static char Str[9];
+	static char Str[11];
 	static double MaxMB = 0;
 	static double RAMMB = 0;