~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.c

  • Committer: Brian Aker
  • Date: 2008-08-09 02:01:02 UTC
  • Revision ID: brian@tangent.org-20080809020102-ohuv0wwp2srxsfia
Remove COM_STAT

Show diffs side-by-side

added added

removed removed

Lines of Context:
3810
3810
com_status(DYNAMIC_STRING *buffer __attribute__((unused)),
3811
3811
           char *line __attribute__((unused)))
3812
3812
{
3813
 
  const char *status_str;
3814
3813
  char buff[40];
3815
3814
  uint64_t id;
3816
3815
  DRIZZLE_RES *result;
3887
3886
  if (drizzle.net.compress)
3888
3887
    tee_fprintf(stdout, "Protocol:\t\tCompressed\n");
3889
3888
 
3890
 
  if ((status_str= drizzle_stat(&drizzle)) && !drizzle_error(&drizzle)[0])
3891
 
  {
3892
 
    ulong sec;
3893
 
    const char *pos= strchr(status_str,' ');
3894
 
    /* print label */
3895
 
    tee_fprintf(stdout, "%.*s\t\t\t", (int) (pos-status_str), status_str);
3896
 
    if ((status_str= str2int(pos,10,0,LONG_MAX,(long*) &sec)))
3897
 
    {
3898
 
      nice_time((double) sec,buff,0);
3899
 
      tee_puts(buff, stdout);      /* print nice time */
3900
 
      while (*status_str == ' ')
3901
 
        status_str++;  /* to next info */
3902
 
      tee_putc('\n', stdout);
3903
 
      tee_puts(status_str, stdout);
3904
 
    }
3905
 
  }
3906
3889
  if (safe_updates)
3907
3890
  {
3908
3891
    vidattr(A_BOLD);