Update 2022-12-10 11:54 OpenBSD/amd64
This commit is contained in:
parent
e10f23b8eb
commit
f85c7da6dc
@ -6,13 +6,13 @@ int main(int argc, const char *argv[])
|
|||||||
{
|
{
|
||||||
unsigned long long no = 0;
|
unsigned long long no = 0;
|
||||||
for (int i=1; i<argc; i++) {
|
for (int i=1; i<argc; i++) {
|
||||||
no += strtoull(argv[i], NULL, 10) / 1000000;
|
no += strtoull(argv[i], NULL, 10);
|
||||||
}
|
}
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
printf("%lld\n", no);
|
printf("%lld\n", no);
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
printf("%.0lld\n", no / (argc - 1));
|
printf("%.0lld\n", no / (argc - 1) / 1000000);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,7 @@ set makeprg=make\ %:r
|
|||||||
set autowrite
|
set autowrite
|
||||||
|
|
||||||
" Work scripts
|
" Work scripts
|
||||||
nnoremap mm :w\|!mymake<CR>
|
nnoremap mm :w\|!make<CR>
|
||||||
nnoremap mt :w\|!mytest<CR>
|
|
||||||
|
|
||||||
" TEMPORARY FILES
|
" TEMPORARY FILES
|
||||||
set undofile
|
set undofile
|
||||||
|
Loading…
Reference in New Issue
Block a user