Changeset 5087:f49298306e63 in roaraudio


Ignore:
Timestamp:
07/10/11 21:03:42 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

print only subsecs if remote clock provides them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r5067 r5087  
    259259         (long long unsigned int) time.t_ssec); 
    260260 } else { 
    261   printf("Server time           : %llu.%06llu sec\n", 
    262          (long long unsigned int)time.t_sec, 
    263          (long long unsigned int) time.t_ssec / 18446744073709LLU); 
     261  if ( time.c_freq == 1000000000LL && time.t_ssec == 0 ) { 
     262   printf("Server time           : %llu sec\n", 
     263          (long long unsigned int)time.t_sec); 
     264  } else { 
     265   printf("Server time           : %llu.%06llu sec\n", 
     266          (long long unsigned int)time.t_sec, 
     267          (long long unsigned int) time.t_ssec / 18446744073709LLU); 
     268  } 
    264269 } 
    265270 if ( time.c_freq ) 
Note: See TracChangeset for help on using the changeset viewer.