Floats are numbers too.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 26 Nov 2007 23:47:41 +0000 (23:47 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 26 Nov 2007 23:47:41 +0000 (23:47 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2637 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/vsched.c

index 1313f58..801003b 100644 (file)
@@ -183,7 +183,7 @@ static void do_dir_entry(struct vc_set_sched *sched, const char *name)
     if (!isNumber(buf, &val, true)) {
       WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
       WRITE_STR(2, name);
-      WRITE_MSG(2, ": is not a number\n");
+      WRITE_MSG(2, ": is not an integer\n");
       exit(1);
     }
 
@@ -244,7 +244,7 @@ static void do_dir(xid_t xid, struct vc_set_sched *sched, const char *dir, int m
 
 #define SETVAL(ATTR,MASK) \
   if (!isNumber(optarg, &tmp, false)) { \
-    WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "non-numeric value specified for '--" #ATTR "'\n"); \
+    WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "non-integer value specified for '--" #ATTR "'\n"); \
     exit(wrapper_exit_code); \
   } \
   else { \