mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
net-mgmt/tcptrack: fix build on armv7 / powerpc
TextUI.cc:306:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat] 306 | printw("%ds",ic->getIdleSeconds()); | ~~ ^~~~~~~~~~~~~~~~~~~~ | %lld TextUI.cc:308:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat] 308 | printw("%dm",ic->getIdleSeconds()/60); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~ | %lld TextUI.cc:310:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat] 310 | printw("%dh",ic->getIdleSeconds()/3600); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ | %lld 3 errors generated.
This commit is contained in:
parent
1530fd2a9f
commit
aa03dfb264
1 changed files with 15 additions and 0 deletions
|
@ -158,3 +158,18 @@ too low).
|
|||
+ if (pthread_create(&displayer_tid, NULL, displayer_thread_func, this) != 0)
|
||||
throw GenericError("pthread_create() returned an error.");
|
||||
|
||||
@@ -309,11 +303,11 @@
|
||||
|
||||
move(row,58);
|
||||
if( ic->getIdleSeconds() < 60 )
|
||||
- printw("%ds",ic->getIdleSeconds());
|
||||
+ printw("%ds",(int)(ic->getIdleSeconds()));
|
||||
else if( ic->getIdleSeconds() > 59 )
|
||||
- printw("%dm",ic->getIdleSeconds()/60);
|
||||
+ printw("%dm",(int)(ic->getIdleSeconds())/60);
|
||||
else if( ic->getIdleSeconds() > 3559 )
|
||||
- printw("%dh",ic->getIdleSeconds()/3600);
|
||||
+ printw("%dh",(int)(ic->getIdleSeconds())/3600);
|
||||
|
||||
move(row,63);
|
||||
if( ic->activityToggle() )
|
||||
|
|
Loading…
Add table
Reference in a new issue