Fix regression to System.Diagnostics.Process.PrivateMemorySize64 (). Fixes #1459
authorDavid Evans <devans@mac.com>
Thu, 13 Oct 2011 06:00:34 +0000 (08:00 +0200)
committerZoltan Varga <vargaz@gmail.com>
Thu, 13 Oct 2011 06:00:43 +0000 (08:00 +0200)
mono/utils/mono-proclib.c

index ebd5982ae1aeb6699c1d9ddf58df1018218edb06..b7062c33f1e4d6c6cd2ead32493fa27685ce1d90 100644 (file)
@@ -428,7 +428,7 @@ get_pid_status_item (int pid, const char *item, MonoProcessError *error, int mul
 
        s = get_pid_status_item_buf (pid, item, buf, sizeof (buf), error);
        if (s)
-               return atoi (s) * multiplier;
+               return ((gint64) atol (s)) * multiplier;
        return 0;
 #endif
 }