~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/memory.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2012 Nicira, Inc.
 
2
 * Copyright (c) 2012, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
51
51
 
52
52
/* Runs the memory monitor.
53
53
 *
54
 
 * The client should call memory_should_report() afterward. */
 
54
 * The client should call memory_should_report() afterward.
 
55
 *
 
56
 * This function, and the remainder of this module's interface, should be
 
57
 * called from only a single thread. */
55
58
void
56
59
memory_run(void)
57
60
{
138
141
    compose_report(usage, &s);
139
142
 
140
143
    if (want_report) {
141
 
        VLOG_INFO("%s", ds_cstr(&s));
 
144
        if (s.length) {
 
145
            VLOG_INFO("%s", ds_cstr(&s));
 
146
        }
142
147
        want_report = false;
143
148
    }
144
149
    if (n_conns) {