Changeset 4742:14aa2c42403d in roaraudio for plugins/roard


Ignore:
Timestamp:
01/31/11 11:05:06 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some more infos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-gopher.c

    r4716 r4742  
    5151}; 
    5252 
     53// need a true constant string. 
     54#define info_text \ 
     55 "This server is RoarAudio server (roard) with a small status gopher server\n" \ 
     56 "integrated. (For version and stuff see /status.txt.)\n" \ 
     57 "RoarAudio is a modern, multi OS, networed sound system.\n" \ 
     58 "For more information see http://roaraudio.keep-cool.org/\n" 
     59 
    5360static struct item { 
    5461 const char * selector; 
     
    6976  .cb = NULL 
    7077 }, 
    71  {.selector = "/info.txt",   .type = _FILE, .text = "Some\nText.", .cb = NULL}, 
     78 {.selector = "/info.txt",   .type = _FILE, .text = info_text, .cb = NULL}, 
    7279 {.selector = "/status.txt", .type = _FILE, .cb = scb_status_txt}, 
    7380 {.selector = "/test/*",     .type = _FILE, .cb = scb_test}, 
     
    109116          "Server description: %s\r\n" 
    110117          "\r\n" 
    111           "Counters current:   %llu clients, %llu streams\r\n", 
     118          "Counters current:   %llu clients, %llu streams\r\n" 
     119          "Counters sum:       %llu clients, %llu streams\r\n", 
    112120          server_version, 
    113121          g_config->location, 
    114122          g_config->description, 
    115123          (long long unsigned int)g_counters.cur.clients, 
    116           (long long unsigned int)g_counters.cur.streams 
     124          (long long unsigned int)g_counters.cur.streams, 
     125          (long long unsigned int)g_counters.sum.clients, 
     126          (long long unsigned int)g_counters.sum.streams 
    117127         ); 
    118128 
Note: See TracChangeset for help on using the changeset viewer.