diff options
author | Christian Hesse <mail@eworm.de> | 2014-02-24 11:30:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-02-24 11:30:52 +0100 |
commit | db60c67c72e399c0b3968a53d2673ee5db488d11 (patch) | |
tree | bf70613cce4bc09037d5cce14ec5d46e0569eaff | |
parent | a7a6dc6963a9b72816f1e4e19467aab152644507 (diff) | |
download | nullshell-db60c67c72e399c0b3968a53d2673ee5db488d11.tar.gz nullshell-db60c67c72e399c0b3968a53d2673ee5db488d11.tar.zst |
show the banner from time to time
-rw-r--r-- | nullshell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nullshell.c b/nullshell.c index 9225fd2..1f8f35a 100644 --- a/nullshell.c +++ b/nullshell.c @@ -57,7 +57,10 @@ int main(int argc, char **argv) { fflush(NULL); if (*string == 0) { time(&now); - string = ctime(&now); + if ((now / 30) % 30 > 0) + string = ctime(&now); + else + string = BANNER; } else string++; } |