diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2008-05-03 13:57:50 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2008-05-03 13:57:50 +0000 |
commit | ed55675366966850aa9c1485738fa4232c7432a5 (patch) | |
tree | 8dbff3f4663ceb150f0b7474839e5c402b1ca658 /tests | |
parent | 65ef2f4aade8cae1be4543ebe3d414474f9f0ce2 (diff) | |
download | v-usb-ed55675366966850aa9c1485738fa4232c7432a5.tar.gz v-usb-ed55675366966850aa9c1485738fa4232c7432a5.tar.bz2 v-usb-ed55675366966850aa9c1485738fa4232c7432a5.zip |
- output n/a if values are not in both files
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/compare-sizes.awk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/compare-sizes.awk b/tests/compare-sizes.awk index 80c7908..d294c54 100755 --- a/tests/compare-sizes.awk +++ b/tests/compare-sizes.awk @@ -36,6 +36,10 @@ END{ } for(i = 0; i < opt; i++){ option = options[i]; - printf("%39s %+6d %+5d\n", option, flash[file2, option] - flash[file1, option], ram[file2, option] - ram[file1, option]); + if(!flash[file2, option] || !flash[file1, option]){ + printf("%39s %6s %5s\n", option, "n/a", "n/a"); + }else{ + printf("%39s %+6d %+5d\n", option, flash[file2, option] - flash[file1, option], ram[file2, option] - ram[file1, option]); + } } } |