diff options
Diffstat (limited to 'argparse.c')
-rw-r--r-- | argparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,14 +120,14 @@ void argparse(int argc, char **argv) userconfig.log_data=1; break; case 'p': - userconfig.interval=strtoll(optarg,NULL,10); + userconfig.interval=(unsigned int) strtoll(optarg,NULL,10); break; case 'P': if (strcmp(optarg,"all")==0) { userconfig.cpu=-1; } else { - userconfig.cpu=strtoll(optarg,NULL,10); + userconfig.cpu=(int) strtoll(optarg,NULL,10); } break; case 's': |