Fix confusion over workspace units.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 17 Mar 2013 17:15:04 +0000 (18:15 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 17 Mar 2013 17:15:04 +0000 (18:15 +0100)
doc/utilities.texi
src/data/settings.c
src/language/utilities/set.q

index 4423080f1bcc353457afa93935b5f956f36dd0e6..158177b6884f6435e006099722643f66e5082e5b 100644 (file)
@@ -606,7 +606,7 @@ RANDOM, which will obtain an initial seed from the current time of day.
 Currently not used.
 
 @item WORKSPACE
-The maximum amount of memory (in bytes) that @pspp{} will use to store data being processed.
+The maximum amount of memory (in kilobytes) that @pspp{} will use to store data being processed.
 If memory in excess of the workspace size is required, then @pspp{} will start
 to use temporary files to store the data.
 Setting a higher value will, in general, mean procedures will run faster, 
index 47b3f3d5ce6081f58f53afe03a2f1bd1fd381904..b1d4a80b9d2773b798fe432e2731aa215979865d 100644 (file)
@@ -452,7 +452,7 @@ settings_get_workspace_cases (const struct caseproto *proto)
    bytes. */
 
 void
-settings_set_workspace ( size_t workspace)
+settings_set_workspace (size_t workspace)
 {
   the_settings.workspace = workspace;
 }
index 8f59156e2b80a90b14c2f227f6ef773d712322ed..14cc4be5873daa66edbd3428f8ffff24f29c11eb 100644 (file)
@@ -875,7 +875,8 @@ show_width (const struct dataset *ds UNUSED)
 static char *
 show_workspace (const struct dataset *ds UNUSED)
 {
-  return xasprintf ("%d", settings_get_workspace ());
+  size_t ws = settings_get_workspace () / 1024L;
+  return xasprintf ("%ld", ws);
 }
 
 static char *