Skip to content

Commit db44536

Browse files
committed
v2.1.0
1 parent 1382569 commit db44536

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

main

-16.3 KB
Binary file not shown.

src/hlp/hlp_info.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ void print_hlp_info() {
1818
print_banner();
1919
printf("Spynix is a commandline tool for gathering info about hardware.\n\n \
2020
Info:\n\t \
21-
-h or --help - show this menu\n\t \
22-
-v or --version - show version\n\t \
23-
-b or --banner - show ASCII banner\n\n \
21+
-h or --help \t- show this menu\n\t \
22+
-v or --version \t- show version\n\t \
23+
-b or --banner \t- show ASCII banner\n\n \
2424
Options:\n\t \
25-
-a or --all - show summary info about system, cpu, ram and rom\n\t \
26-
-sys - show system info\n\t \
27-
-cpu - show short Central Process Unit info\n\t \
28-
-ram - show Random Access Memory info\n\t \
29-
-rom - show Read Only Memory info\n\n \
25+
-a or --all \t- show summary info about system, cpu, ram and rom\n\t \
26+
-sys \t\t- show system info\n\t \
27+
-cpu \t\t- show short Central Processing Unit info\n\t \
28+
-ram \t\t- show Random Access Memory info\n\t \
29+
-rom \t\t- show Read Only Memory info\n\t \
30+
-net \t\t- show network info\n\n \
3031
Advanced:\n\t \
31-
-cpu -f or -cpu --full - show full Central Process Unit info\n");
32+
-cpu -f or -cpu --full \t- show full Central Processing Unit info\n");
3233
}
3334

3435
void print_ver_info() {
3536
print_banner();
36-
printf("spynix v2.0.0\n\nFor more info visit: https://github.com/git-user-cpp/spynix\n");
37+
printf("spynix v2.1.0\n\nFor more info visit: https://github.com/git-user-cpp/spynix\n");
3738
}

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(int argc, char **argv) {
3030
print_rom_info();
3131
} else if(strcmp(argv[1], "-net") == 0) {
3232
char host_name[100];
33-
printf("Enter a hostname: ");
33+
printf("Enter a hostname or IP address: ");
3434
fgets(host_name, sizeof(host_name), stdin);
3535
host_name[strcspn(host_name, "\n")] = '\0';
3636

src/net/net_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void print_net_info(char *hostname){
2121

2222
struct ifaddrs *ifaddr, *ifa;
2323
if(getifaddrs(&ifaddr) == -1) {
24-
perror("getifaddrs error");
24+
perror("getifaddrs");
2525
exit(1);
2626
}
2727
for(ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next){

0 commit comments

Comments
 (0)